vim: more speedup mapping keys

This commit is contained in:
masterzu 2016-11-04 10:20:16 +01:00
parent c77bd768f3
commit 47c954170a
1 changed files with 9 additions and 7 deletions

View File

@ -225,12 +225,6 @@ imap <Left> <Nop>
imap <Right> <Nop> imap <Right> <Nop>
imap <Up> <Nop> imap <Up> <Nop>
imap <Down> <Nop> imap <Down> <Nop>
" vmap <Left> <Nop>
" vmap <Right> <Nop>
" vmap <Up> <Nop>
" vmap <Down> <Nop>
nmap K <C-u>
nmap J <C-d>
" Esc remap " Esc remap
imap jj <Esc> imap jj <Esc>
@ -239,4 +233,12 @@ imap kk <Esc>
au VimEnter * !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' au VimEnter * !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
" au VimLeave * !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock' " au VimLeave * !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock'
" moves
nmap K <C-u>
nmap J <C-d>
" speed up
" edit .vimrc
nmap <Leader>v :vs ~/.vimrc<Cr>
imap <Leader>v <Esc>:vs ~/.vimrc<Cr>
" remap :
nmap ; :