nix-config/home/vim/plugin/signtoggle.vim

9 lines
320 B
VimL
Raw Permalink Normal View History

2021-02-23 16:04:47 +01:00
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 TermOpen * setlocal signcolumn=no
augroup END