.vimrc: toggle line numbers with F3

This commit is contained in:
Lexi / Zoe 2020-08-21 19:27:23 +02:00
parent 5a45a0e6f5
commit 9498d20b5b
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
1 changed files with 3 additions and 0 deletions

3
.vimrc
View File

@ -62,6 +62,9 @@ map <4-MiddleMouse> <Nop>
nnoremap <C-L> :nohl<CR>:diffupdate<CR><C-L>
set pastetoggle=<F2>
" Toggle line numbers
nnoremap <F3> :set number!<CR>
" If the current buffer has never been saved, it will have no name,
" call the file browser to save it, otherwise just save it.
command! -nargs=0 -bar Update if &modified