.vimrc: toggle line numbers with F3
This commit is contained in:
parent
5a45a0e6f5
commit
9498d20b5b
3
.vimrc
3
.vimrc
|
|
@ -62,6 +62,9 @@ map <4-MiddleMouse> <Nop>
|
||||||
nnoremap <C-L> :nohl<CR>:diffupdate<CR><C-L>
|
nnoremap <C-L> :nohl<CR>:diffupdate<CR><C-L>
|
||||||
set pastetoggle=<F2>
|
set pastetoggle=<F2>
|
||||||
|
|
||||||
|
" Toggle line numbers
|
||||||
|
nnoremap <F3> :set number!<CR>
|
||||||
|
|
||||||
" If the current buffer has never been saved, it will have no name,
|
" If the current buffer has never been saved, it will have no name,
|
||||||
" call the file browser to save it, otherwise just save it.
|
" call the file browser to save it, otherwise just save it.
|
||||||
command! -nargs=0 -bar Update if &modified
|
command! -nargs=0 -bar Update if &modified
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue