Map :w to <F12>

This commit is contained in:
Anthony Rose 2020-10-28 12:38:31 +00:00
parent 628e676714
commit 35a4e11c1a

2
vimrc
View file

@ -24,6 +24,7 @@ endif
nmap <space> <leader> nmap <space> <leader>
inoremap <C-BS> <C-W> inoremap <C-BS> <C-W>
inoremap <F12> <C-\><C-O>:w<CR>
inoremap <down> <nop> inoremap <down> <nop>
inoremap <left> <nop> inoremap <left> <nop>
inoremap <right> <nop> inoremap <right> <nop>
@ -31,6 +32,7 @@ inoremap <up> <nop>
nnoremap <F10> :put =strftime('%FT%T%z')<CR> nnoremap <F10> :put =strftime('%FT%T%z')<CR>
nnoremap <F11> :Goyo<bar>:Limelight!!<CR> nnoremap <F11> :Goyo<bar>:Limelight!!<CR>
nnoremap <F12> :w<CR>
nnoremap <F7> :setlocal spell! spelllang=en_gb<CR> nnoremap <F7> :setlocal spell! spelllang=en_gb<CR>
nnoremap <down> <nop> nnoremap <down> <nop>
nnoremap <left> <nop> nnoremap <left> <nop>