[ADD][VIM] Only show sign column on active buffer

This commit is contained in:
Bruno BELANYI 2019-11-14 16:02:49 +01:00
parent da54f2d130
commit ff1649bd58

View file

@ -0,0 +1,8 @@
augroup signtoggle
autocmd!
" Only show the sign column for the current focused buffer
autocmd BufEnter,FocusGained,WinEnter * set signcolumn=yes
autocmd BufLeave,FocusLost,WinLeave * set signcolumn=no
" Disable the sign column in terminal
autocmd TerminalOpen * set signcolumn=no
augroup END