vim: Nummern mit Strg+N ein/ausschalten

This commit is contained in:
Michael Grote 2021-08-20 11:25:15 +02:00
parent dce254abe5
commit d5e6f63dc4

2
.vimrc
View file

@ -61,7 +61,7 @@ augroup numbertoggle
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
augroup END
" toggle linenumbers
nmap <Leader>c :set norelativenumber!<CR>:set nonu!<CR>
nmap <C-n> :set norelativenumber!<CR>:set nonu!<CR>
syntax on " Enable syntax highlighting
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent.