autocmd/home/ray/.config/vim/vim/bundle/vim-gutentags/plat/unix/update_tags.sh -e "ctags" -t ".tags" -p "." -s "vimrc.d/autocommands.vim" -o "/home/ray/.config/vim/vim/bundle/vim-gutentags/res/ctags_recursive.options" -x "package.json" -x "Session.vim" -x "package-lock.json" -x "TODO.txt" >/dev/null 2>&1 &
This commit is contained in:
parent
005f7a340d
commit
3db9b64730
|
@ -13,16 +13,18 @@ augroup END
|
|||
|
||||
" Show trailing whitepace and spaces before a tab:
|
||||
augroup whitespaceerrors
|
||||
autocmd!
|
||||
autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ containedin=ALL
|
||||
augroup END
|
||||
|
||||
" automatically reload if color scheme file written
|
||||
augroup coloreload
|
||||
au!
|
||||
au BufWritePost customred256.vim so $MYVIMRC
|
||||
autocmd!
|
||||
autocmd BufWritePost customred256.vim so $MYVIMRC
|
||||
augroup end
|
||||
|
||||
augroup linenumbering
|
||||
autocmd!
|
||||
autocmd InsertEnter * :set norelativenumber
|
||||
autocmd InsertLeave * :set number relativenumber
|
||||
autocmd WinEnter * :set number relativenumber
|
||||
|
@ -30,14 +32,15 @@ augroup linenumbering
|
|||
augroup END
|
||||
|
||||
augroup colorcolumns
|
||||
autocmd!
|
||||
autocmd WinEnter * call SetColorColumn()
|
||||
autocmd WinLeave * setlocal colorcolumn=0
|
||||
augroup END
|
||||
|
||||
" Automatically reload .vimrc if chanaged
|
||||
augroup myvimrc
|
||||
au!
|
||||
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
|
||||
autocmd!
|
||||
autocmd BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
|
||||
augroup END
|
||||
|
||||
" vim: foldmethod=marker
|
||||
|
|
Loading…
Reference in New Issue