diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-08-30 18:50:32 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-08-30 18:50:32 +0200 |
| commit | 900c97b3fa7592a9cc4b018c2883dbdac0caba09 (patch) | |
| tree | b3ce5be3d78327f060e4e36c4de9b97a7bb53c77 | |
| parent | 14f986195a6347f55a8e1fb0b5b3ba9d8528a572 (diff) | |
| download | dotfiles-900c97b3fa7592a9cc4b018c2883dbdac0caba09.tar.gz dotfiles-900c97b3fa7592a9cc4b018c2883dbdac0caba09.tar.bz2 dotfiles-900c97b3fa7592a9cc4b018c2883dbdac0caba09.zip | |
changed vim commenter due to weird behavior in c files, github alias, various little change in vimrc
| -rw-r--r-- | .pluggins.vim | 3 | ||||
| -rw-r--r-- | .vimrc | 16 | ||||
| -rw-r--r-- | .zshrc | 1 |
3 files changed, 16 insertions, 4 deletions
diff --git a/.pluggins.vim b/.pluggins.vim index 518a631..2a36b18 100644 --- a/.pluggins.vim +++ b/.pluggins.vim @@ -32,7 +32,8 @@ call plug#begin() Plug 'connorholyday/vim-snazzy' Plug 'chriskempson/base16-vim' - Plug 'tpope/vim-commentary' " minimalistic commenter + Plug 'tomtom/tcomment_vim' " other min commenter + " Plug 'tpope/vim-commentary' " minimalistic commenter Plug 'tpope/vim-surround' " surround stuff Plug 'tpope/vim-eunuch' " command in vim @@ -11,13 +11,12 @@ let mapleader = ' ' syntax enable set hidden set noswapfile -filetype plugin on " add specific rules for certain file type -filetype plugin indent on +set nocompatible +filetype plugin indent on " add specific rules for certain file type set number relativenumber " browse list with tab set wildmode=longest,list,full set wildmenu -set nocompatible set path+=** " for recursive :find " more intuitif split opening set splitbelow @@ -52,6 +51,9 @@ set scrolloff=2 " 2 line above scroll set showcmd set cursorline " highlight current line set noshowmode " unnecessary with status bar" + +set autoread " reload files when changes happen outside vim + " where to place the .swp files set backupdir=~/.vim-tmp,~/.tmp,~/tmp,~/var/tmp set directory=~/.vim-tmp,~/.tmp,~/tmp,~/var/tmp @@ -119,3 +121,11 @@ imap jj <ESC> " remove visual mode keybinding map Q <ESC> + +" c source and header files comment formats for vim-commentary +" autocmd Filetype c setlocal commentstring=// %s +" autocmd Filetype h setlocal commentstring=// %s + +set encoding=utf-8 + +set textwidth=89 " when line wrap occurs @@ -27,6 +27,7 @@ bindkey -M isearch " " magic-space alias -g G='| grep' alias -g L='| less' alias -g LO='192.168.0.' +alias -g HUB="https://github.com/HappyTramp/" alias rr='rm -r' alias ll="ls -lFh" alias la="ls -a" |
