[FIX][VIM] Make configuration compatible w/ nvim
This commit is contained in:
parent
14679d3e81
commit
2bf7f53ade
|
@ -9,5 +9,9 @@ augroup numbertoggle
|
|||
autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu | set rnu | endif
|
||||
autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif
|
||||
" Disable line numbers and relative line numbers in terminal
|
||||
if exists('##TerminalOpen')
|
||||
autocmd TerminalOpen * setlocal nonu nornu
|
||||
elseif has('nvim')
|
||||
autocmd TermOpen * setlocal nonu nornu
|
||||
endif
|
||||
augroup END
|
||||
|
|
|
@ -4,5 +4,9 @@ augroup signtoggle
|
|||
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
|
||||
if exists('##TerminalOpen')
|
||||
autocmd TerminalOpen * setlocal signcolumn=no
|
||||
elseif has('nvim')
|
||||
autocmd TermOpen * setlocal signcolumn=no
|
||||
endif
|
||||
augroup END
|
||||
|
|
Loading…
Reference in a new issue