dot-files/vim/.vim/plugin/signtoggle.vim

9 lines
319 B
VimL

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