From ff1649bd584807aac61d6024fc421e9b2d14da5e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 14 Nov 2019 16:02:49 +0100 Subject: [PATCH] [ADD][VIM] Only show sign column on active buffer --- vim/.vim/plugin/signtoggle.vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 vim/.vim/plugin/signtoggle.vim diff --git a/vim/.vim/plugin/signtoggle.vim b/vim/.vim/plugin/signtoggle.vim new file mode 100644 index 0000000..8dee387 --- /dev/null +++ b/vim/.vim/plugin/signtoggle.vim @@ -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