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:
ManjaroOne666 2018-03-21 22:52:31 +00:00
parent 005f7a340d
commit 3db9b64730
1 changed files with 7 additions and 4 deletions

View File

@ -13,16 +13,18 @@ augroup END
" Show trailing whitepace and spaces before a tab: " Show trailing whitepace and spaces before a tab:
augroup whitespaceerrors augroup whitespaceerrors
autocmd!
autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ containedin=ALL autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ containedin=ALL
augroup END augroup END
" automatically reload if color scheme file written " automatically reload if color scheme file written
augroup coloreload augroup coloreload
au! autocmd!
au BufWritePost customred256.vim so $MYVIMRC autocmd BufWritePost customred256.vim so $MYVIMRC
augroup end augroup end
augroup linenumbering augroup linenumbering
autocmd!
autocmd InsertEnter * :set norelativenumber autocmd InsertEnter * :set norelativenumber
autocmd InsertLeave * :set number relativenumber autocmd InsertLeave * :set number relativenumber
autocmd WinEnter * :set number relativenumber autocmd WinEnter * :set number relativenumber
@ -30,14 +32,15 @@ augroup linenumbering
augroup END augroup END
augroup colorcolumns augroup colorcolumns
autocmd!
autocmd WinEnter * call SetColorColumn() autocmd WinEnter * call SetColorColumn()
autocmd WinLeave * setlocal colorcolumn=0 autocmd WinLeave * setlocal colorcolumn=0
augroup END augroup END
" Automatically reload .vimrc if chanaged " Automatically reload .vimrc if chanaged
augroup myvimrc augroup myvimrc
au! autocmd!
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif autocmd BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
augroup END augroup END
" vim: foldmethod=marker " vim: foldmethod=marker