set nolist on leader-N
This commit is contained in:
parent
eadc268fe6
commit
663e4ece08
4
vimrc
4
vimrc
|
@ -411,9 +411,9 @@ nnoremap <silent> <leader>N :call ToggleGutter()<CR>
|
|||
|
||||
function! ToggleGutter() abort
|
||||
if &number
|
||||
exec "set nonumber norelativenumber signcolumn=no"
|
||||
exec "set nonumber norelativenumber signcolumn=no nolist"
|
||||
else
|
||||
exec "set number relativenumber"
|
||||
exec "set number relativenumber list"
|
||||
try | set signcolumn=auto | catch | set signcolumn=yes:1 | endtry
|
||||
endif
|
||||
endfunction
|
||||
|
|
Loading…
Reference in New Issue