rename augroups
This commit is contained in:
parent
d1014f5e79
commit
c3fd2d2d3b
21
init.vim
21
init.vim
|
@ -465,32 +465,15 @@ augroup END
|
|||
|
||||
" }}}
|
||||
" Show trailing whitepace and spaces before a tab: {{{
|
||||
augroup whitespaceerrors
|
||||
augroup ShowWhiteSpaceErrors
|
||||
autocmd!
|
||||
autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ containedin=ALL
|
||||
augroup END
|
||||
|
||||
" }}}
|
||||
" automatically reload if color scheme file written {{{
|
||||
" augroup coloreload
|
||||
" autocmd!
|
||||
" autocmd BufWritePost customred256.vim so $MYVIMRC
|
||||
" augroup end
|
||||
"
|
||||
|
||||
" }}}
|
||||
" line numbering {{{
|
||||
" if exists('##CmdlineEnter')
|
||||
" augroup linenumbering
|
||||
" autocmd!
|
||||
" autocmd CmdlineEnter * :redraw | :set number
|
||||
" autocmd CmdlineLeave * :set nonumber
|
||||
" augroup END
|
||||
" endif
|
||||
|
||||
" }}}
|
||||
" Automatically reload .vimrc if changed {{{
|
||||
augroup myvimrc
|
||||
augroup ReloadVimrc
|
||||
autocmd!
|
||||
autocmd BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
|
||||
augroup END
|
||||
|
|
Loading…
Reference in New Issue