-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvimrc.keymap
65 lines (48 loc) · 915 Bytes
/
vimrc.keymap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
let mapleader = ","
vmap s S
nnoremap L $
vnoremap L $
nnoremap H ^
vnoremap H ^
inoremap jf <ESC>
noremap ; :
noremap : ;
nnoremap j gj
nnoremap k gk
vnoremap j gj
vnoremap k gk
nnoremap <Down> gj
nnoremap <Up> gk
vnoremap <Down> gj
vnoremap <Up> gk
nnoremap x "_x
vnoremap x "_x
nnoremap s <Nop>
vnoremap s <Nop>
nnoremap sj <C-w>j
nnoremap sk <C-w>k
nnoremap sl <C-w>l
nnoremap sh <C-w>h
nnoremap sJ <C-w>-
nnoremap sK <C-w>+
nnoremap sL <C-w>>
nnoremap sH <C-w><
nnoremap ss :<C-u>sp<CR>
nnoremap sv :<C-u>vs<CR>
nnoremap st :<C-u>tabnew<CR>
nnoremap sn gt
nnoremap sp gT
inoremap <C-h> <Left>
inoremap <C-j> <Down>
inoremap <C-k> <Up>
inoremap <C-l> <Right>
imap <ESC>OA <Up>
imap <ESC>OB <Down>
imap <ESC>OC <Right>
imap <ESC>OD <Left>
inoremap <C-o> <esc>o
nnoremap <CR> o<Esc>
vnoremap <Cr> :<C-u>'<,'>s/ *, */,\r/g<Cr>:<C-u>noh<Cr>
nnoremap gh <C-o>
nnoremap gl <C-i>
nnoremap == gg=G