diff --git a/plugin/keys.vim b/plugin/keys.vim index 065702e..e415b34 100644 --- a/plugin/keys.vim +++ b/plugin/keys.vim @@ -1,3 +1,54 @@ +" workman +noremap e j +noremap o k +noremap n h +noremap i l +noremap k n +noremap h e +noremap l o +noremap f u +noremap u i + +noremap E J +noremap O K +noremap N H +noremap I L +noremap K N +noremap H E +noremap L O +noremap F U +noremap U I + +noremap ge gj +noremap go gk +noremap gn gh +noremap gl go +noremap gk gn +noremap gh ge + +noremap gE gJ +noremap gN gH +noremap gK gN +noremap gH gE +noremap gL gO + +nnoremap e :wincmd j +nnoremap o :wincmd k +nnoremap n :wincmd h +nnoremap i :wincmd l +nnoremap k :wincmd n +nnoremap l :wincmd o + +nnoremap b +nnoremap e + +" get control-j back, so switch it with ctrl-n at qwerty position of j +imap +cmap +inoremap +cnoremap + + nnoremap let g:mapleader = ' ' @@ -60,10 +111,10 @@ nmap :pc " map :wincmd h " map :wincmd l " map :wincmd l -nnoremap :wincmd K -nnoremap :wincmd J -nnoremap :wincmd H -nnoremap :wincmd L +nnoremap :wincmd K +nnoremap :wincmd J +nnoremap :wincmd H +nnoremap :wincmd L nnoremap :wincmd k nnoremap :wincmd j nnoremap :wincmd h @@ -95,12 +146,12 @@ inoremap :set paste"+p :set nopaste nmap :setlocal spell! spelllang=en_us " cursor jump -nnoremap 3k -inoremap :-3i -vnoremap 3k -nnoremap 3j -inoremap :+3i -vnoremap 3j +nnoremap 3k +inoremap :-3i +vnoremap 3k +nnoremap 3j +inoremap :+3i +vnoremap 3j nnoremap 6k inoremap :-6i vnoremap 6k @@ -108,6 +159,19 @@ nnoremap 6j inoremap :+6i vnoremap 6j +nnoremap 3k +inoremap :-3i +vnoremap 3k +nnoremap 3j +inoremap :+3i +vnoremap 3j +nnoremap 6k +inoremap :-6i +vnoremap 6k +nnoremap 6j +inoremap :+6i +vnoremap 6j + " scrolling nnoremap 10 inoremap 10i