remap f1 as esc in vim, for use on some keyboards
This commit is contained in:
parent
999784a7d1
commit
e10f4d7089
1 changed files with 5 additions and 0 deletions
5
.vimrc
5
.vimrc
|
@ -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:¬
|
||||
|
|
Loading…
Reference in a new issue