[ADD][VIM] Only show sign column on active buffer
This commit is contained in:
parent
da54f2d130
commit
ff1649bd58
8
vim/.vim/plugin/signtoggle.vim
Normal file
8
vim/.vim/plugin/signtoggle.vim
Normal 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
|
Loading…
Reference in a new issue