remap f1 as esc in vim, for use on some keyboards

This commit is contained in:
Cyryl Plotnicki-Chudyk 2015-07-05 15:47:31 +02:00
parent 999784a7d1
commit e10f4d7089

5
.vimrc
View file

@ -12,11 +12,16 @@ nmap <leader>p :set paste!<CR>
nmap <leader>h :set hlsearch!<CR>
nnoremap ; :
" no cheating !
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
" for damaged keyboards
map <F1> <Esc>
imap <F1> <Esc>
" special chars
nmap <leader>l :set list!<CR>
set listchars=tab:▸\ ,eol