Compare commits

..

2 Commits

Author SHA1 Message Date
Ray Elliott c3fd2d2d3b rename augroups 2020-08-01 12:05:46 +01:00
Ray Elliott d1014f5e79 terminal open autocommands 2020-08-01 12:04:25 +01:00
1 changed files with 6 additions and 19 deletions

View File

@ -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
" }}} " }}}
"----------------------------------------------------------------------------}}} "----------------------------------------------------------------------------}}}