-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.ideavimrc
68 lines (52 loc) · 1.46 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
set NERDTree
set highlightedyank
set ReplaceWithRegister
set argtextobj
set exchange
set surround
set multiple-cursors
set easymotion
set textobj-entire
set ideajoin
set quickscope
" Trigger a highlight in the appropriate direction when pressing these keys:
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
if has('webstorm')
set matchit
endif
nnoremap ]h :action GotoNextElementUnderCaretUsage<CR>
nnoremap [h :action GotoPrevElementUnderCaretUsage<CR>
" naviagte errors
nnoremap ]q :action GotoNextError<CR>
nnoremap [q :action GotoPreviousError<CR>
" exchange line
nnoremap ]e :action MoveLineDown<CR>
nnoremap [e :action MoveLineUp<CR>
" make AceJump acts like easymotion in vim
map <space>j :action AceLineAction<CR>
map <space>k :action AceLineAction<CR>
map <space>s :action AceTargetAction<CR>
" Add line before and after
map [<space> :action EditorStartNewLineBefore<CR>
map ]<space> :action EditorStartNewLine<CR>
" Show usage
map \jr :action ShowUsages<CR>
map \jd :action GotoDeclaration<CR>
map \ji :action GotoImplementation<CR>
"copy and paste
vmap \y "+y
vmap \p "+p
nmap \p "+p
vmap \P "+P
nmap \P "+P
" quick definition
map gh :action QuickImplementations<CR>
map K :action QuickJavaDoc<CR>
" Override vim's reformat
nnoremap \l :action ReformatCode<CR>
" easy motion
let g:EasyMotion_override_acejump = 1
map ]c :action VcsShowNextChangeMarker<CR>
map [c :action VcsShowPrevChangeMarker<CR>
map \y :action EditorCopy<CR>
map \p :action EditorPaste<CR>