-
Notifications
You must be signed in to change notification settings - Fork 3
/
.ideavimrc
97 lines (84 loc) · 2.27 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
" -*- mode: dactyl; eval: (rainbow-delimiters-mode -1) -*- "
set leader <SPC>
let mapleader = "\<Space>"
" J/K navigation "
nnoremap J 5j
vnoremap J 5j
nnoremap K 5k
vnoremap K 5k
" C-a/e navigation "
nnoremap <C-a> ^
vnoremap <C-a> ^
inoremap <C-a> <HOME>
nnoremap <C-e> $
vnoremap <C-e> $
inoremap <C-e> <END>
" subword navigation "
nnoremap w [w
nnoremap e ]w
nnoremap b ]b
vnoremap w [w
vnoremap e ]w
vnoremap b ]b
" subword modification"
nnoremap cw c[w
nnoremap ce c]w
nnoremap de d]w
nnoremap de d]w
nnoremap ve v]w
nnoremap ve v]w
map <Leader>wm <Action>(HideAllWindows)
map <Leader>w0 <Action>(CloseEditor)
map <Leader>ft <Action>(SelectInProjectView)
map <Leader>bi <Action>(FileStructurePopup)
map <Leader>lrr <Action>(RenameElement)
map <A-1> <Action>(FocusEditor)
nnoremap <A-1> :action FocusEditor<CR>
nnoremap <Leader>tt :action GotoTest<CR>
nnoremap <Leader>fn :action GotoClass<CR>
map <Leader>fn <Action>(GotoClass)
nnoremap <Leader>ff :action GotoFile<CR>
nnoremap <Leader>be :action RecentFiles<CR>
nnoremap <Leader>/ :action SearchEverywhere<CR>
nnoremap <C-A-j> :action NextTab<CR>
nnoremap <C-A-k> :action PreviousTab<CR>
nnoremap <C-j> i<CR><ESC>
nnoremap <C-o> :action Back<CR>
nnoremap <C-n> :action GotoClass<CR>
nnoremap <C-i> :action Forward<CR>
nnoremap <C-A-a> :action MethodUp<CR>
nnoremap <C-A-e> :action MethodDown<CR>
nnoremap <C-A-s> *
nnoremap <C-n> :action List-selectNextRow<CR>
nnoremap <C-p> :action List-selectPreviousRow<CR>
nnoremap <C-n> :action PopupMenu-selectNext<CR>
nnoremap <C-p> :action PopupMenu-selectPrevious<CR>
nnoremap <C-n> :action Table-selectNext<CR>
nnoremap <C-p> :action Table-selectPrevious<CR>
nnoremap <C-n> :action Tree-selectNext<CR>
nnoremap <C-p> :action Tree-selectPrevious<CR>
" set handler "
sethandler <C-.> a:ide
sethandler <A-1> a:ide
sethandler <C-b> a:ide
sethandler <C-c> a:ide
sethandler <C-f> a:ide
sethandler <C-j> a:vim
sethandler <C-k> a:vim
sethandler <C-n> a:vim
sethandler <C-p> a:vim
sethandler <C-q> a:ide
sethandler <C-A-j> a:vim
sethandler <C-A-k> a:vim
sethandler <A-i> a:vim
" plugins "
set commentary
nnoremap <C-7> gc
vnoremap <C-7> gc
set exchange
nnoremap gx cx
vnoremap gx cx
set surround
set easymotion
map <A-i> <Plug>(easymotion-bd-f)
let g:EasyMotion_do_mapping = 1