Update for workman
This commit is contained in:
parent
cc39580382
commit
a070eccaf4
@ -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 <silent> <c-w>e :wincmd j<cr>
|
||||
nnoremap <silent> <c-w>o :wincmd k<cr>
|
||||
nnoremap <silent> <c-w>n :wincmd h<cr>
|
||||
nnoremap <silent> <c-w>i :wincmd l<cr>
|
||||
nnoremap <silent> <c-w>k :wincmd n<cr>
|
||||
nnoremap <silent> <c-w>l :wincmd o<cr>
|
||||
|
||||
nnoremap <c-n> b
|
||||
nnoremap <c-i> e
|
||||
|
||||
" get control-j back, so switch it with ctrl-n at qwerty position of j
|
||||
imap <c-n> <cr>
|
||||
cmap <c-n> <cr>
|
||||
inoremap <c-j> <c-n>
|
||||
cnoremap <c-j> <c-n>
|
||||
|
||||
|
||||
nnoremap <SPACE> <Nop>
|
||||
let g:mapleader = ' '
|
||||
|
||||
@ -60,10 +111,10 @@ nmap <C-p> :pc<CR>
|
||||
" map <C-h> <Esc>:wincmd h<CR>
|
||||
" map <C-Right> <Esc>:wincmd l<CR>
|
||||
" map <C-l> <Esc>:wincmd l<CR>
|
||||
nnoremap <silent> <A-i> :wincmd K<CR>
|
||||
nnoremap <silent> <A-k> :wincmd J<CR>
|
||||
nnoremap <silent> <A-j> :wincmd H<CR>
|
||||
nnoremap <silent> <A-l> :wincmd L<CR>
|
||||
nnoremap <silent> <A-o> :wincmd K<CR>
|
||||
nnoremap <silent> <A-e> :wincmd J<CR>
|
||||
nnoremap <silent> <A-n> :wincmd H<CR>
|
||||
nnoremap <silent> <A-i> :wincmd L<CR>
|
||||
nnoremap <silent> <A-Up> :wincmd k<CR>
|
||||
nnoremap <silent> <A-Down> :wincmd j<CR>
|
||||
nnoremap <silent> <A-Left> :wincmd h<CR>
|
||||
@ -95,12 +146,12 @@ inoremap <silent> <S-Insert> <ESC>:set paste<CR>"+p :set nopaste<CR>
|
||||
nmap <silent> <S-F7> :setlocal spell! spelllang=en_us<CR>
|
||||
|
||||
" cursor jump
|
||||
nnoremap <S-Up> 3k
|
||||
inoremap <S-Up> <Esc>:-3<CR>i
|
||||
vnoremap <S-Up> 3k
|
||||
nnoremap <S-Down> 3j
|
||||
inoremap <S-Down> <Esc>:+3<CR>i
|
||||
vnoremap <S-Down> 3j
|
||||
nnoremap <C-A-Up> 3k
|
||||
inoremap <C-A-Up> <Esc>:-3<CR>i
|
||||
vnoremap <C-A-Up> 3k
|
||||
nnoremap <C-A-Down> 3j
|
||||
inoremap <C-A-Down> <Esc>:+3<CR>i
|
||||
vnoremap <C-A-Down> 3j
|
||||
nnoremap <C-Up> 6k
|
||||
inoremap <C-Up> <Esc>:-6<CR>i
|
||||
vnoremap <C-Up> 6k
|
||||
@ -108,6 +159,19 @@ nnoremap <C-Down> 6j
|
||||
inoremap <C-Down> <Esc>:+6<CR>i
|
||||
vnoremap <C-Down> 6j
|
||||
|
||||
nnoremap <C-A-o> 3k
|
||||
inoremap <C-A-o> <Esc>:-3<CR>i
|
||||
vnoremap <C-A-o> 3k
|
||||
nnoremap <C-A-e> 3j
|
||||
inoremap <C-A-e> <Esc>:+3<CR>i
|
||||
vnoremap <C-A-e> 3j
|
||||
nnoremap <C-o> 6k
|
||||
inoremap <C-o> <Esc>:-6<CR>i
|
||||
vnoremap <C-o> 6k
|
||||
nnoremap <C-e> 6j
|
||||
inoremap <C-e> <Esc>:+6<CR>i
|
||||
vnoremap <C-e> 6j
|
||||
|
||||
" scrolling
|
||||
nnoremap <S-PageUp> 10<C-Y>
|
||||
inoremap <S-PageUp> <Esc>10<C-Y>i
|
||||
|
Loading…
Reference in New Issue
Block a user