home: vim: add 'plugin' directory
This commit is contained in:
parent
1e6a5401ec
commit
6ea69fae87
12 changed files with 186 additions and 0 deletions
8
home/vim/plugin/signtoggle.vim
Normal file
8
home/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 TermOpen * setlocal signcolumn=no
|
||||
augroup END
|
||||
Loading…
Add table
Add a link
Reference in a new issue