-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.ideavimrc
74 lines (60 loc) · 1.25 KB
/
.ideavimrc
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
65
66
67
68
69
70
71
72
73
74
" .ideavimrc "
set clipboard=unnamed
let mapleader=","
" Save
imap <C-S> <Esc><C-S>a
map <C-S> :w<CR>
" Search
"set ignorecase
"set ic
"set noic
"" If you search for something containing uppercase characters,
"" it will do a case sensitive search;
"" if you search for something purely lowercase,
"" it will do a case insensitive search.
set smartcase
" Swith Tab
map <S-H> gT
map <S-L> gt
map <leader>a 1gt
map <leader>s 2gt
map <leader>d 3gt
map <leader>f 4gt
map <leader>g 5gt
map <leader>h 6gt
map <leader>j 7gt
map <leader>k 8gt
map <leader>l 9gt
map <leader>; 10gt
map <leader>q 11gt
map <leader>w 12gt
map <leader>e 13gt
map <leader>r 14gt
map <leader>t 15gt
map <leader>y 16gt
map <leader>u 17gt
map <leader>i 18gt
map <leader>o 19gt
map <leader>p 20gt
" Mimic Emacs in Insert Mode
inoremap <C-B> <Left>
inoremap <C-F> <Right>
inoremap <C-A> <Home>
inoremap <C-E> <End>
" Forward or Backward Word (End)
inoremap <C-N> <Esc>ea
inoremap <C-P> <Esc>gea
" Del to End of Line
inoremap <C-K> <Right><Esc>Da
" Del to Head of Line
inoremap <C-U> <Esc>d0xi
" Exchange Chars
inoremap <C-T> <esc>xpli
" Join Lines Without Spacing
map <S-K> Jx
" Copy to EOL (without the line break)
map <S-Y> v$hy
" Enable Vim-Surround
set surround
" Redo
withoutmap <c-r> :redo<CR>