Compare commits
2 Commits
e072905ec4
...
c3fd2d2d3b
Author | SHA1 | Date |
---|---|---|
Ray Elliott | c3fd2d2d3b | |
Ray Elliott | d1014f5e79 |
25
init.vim
25
init.vim
|
@ -465,32 +465,15 @@ augroup END
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
" Show trailing whitepace and spaces before a tab: {{{
|
" Show trailing whitepace and spaces before a tab: {{{
|
||||||
augroup whitespaceerrors
|
augroup ShowWhiteSpaceErrors
|
||||||
autocmd!
|
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 {{{
|
|
||||||
" 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 {{{
|
" Automatically reload .vimrc if changed {{{
|
||||||
augroup myvimrc
|
augroup ReloadVimrc
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd 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
|
||||||
|
@ -503,6 +486,10 @@ augroup QuickFixAutoload
|
||||||
autocmd QuickFixCmdPost l* nested botright lwindow
|
autocmd QuickFixCmdPost l* nested botright lwindow
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
augroup OnTerminalOpen
|
||||||
|
autocmd!
|
||||||
|
autocmd TermOpen * setlocal nonumber norelativenumber
|
||||||
|
augroup END
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
"----------------------------------------------------------------------------}}}
|
"----------------------------------------------------------------------------}}}
|
||||||
|
|
Loading…
Reference in New Issue