-
Notifications
You must be signed in to change notification settings - Fork 1
/
.ideavimrc
83 lines (61 loc) · 1.93 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
" Source your .vimrc
source ~/.vimrc
" IDEA stuff
set ideajoin
set idearefactormode=keep
set ideamarks
" Plugins
Plug 'preservim/nerdtree'
" Mappings
map <leader>e <Action>(ActivateProjectToolWindow)
map [d <Action>(GotoPreviousError)
map ]d <Action>(GotoNextError)
" Search
map <leader>fa <Action>(SearchEverywhere)
map <leader>ff <Action>(GotoFile)
map <leader>fg <Action>(FindInPath)
map <leader>fc <Action>(FindInPath)
map <leader>fs <Action>(GotoSymbol)
map <leader>fb <Action>(RecentFiles)
map <leader>fd <Action>(HelpDiagnosticTools)
map <leader>ft <Action>(ActivateTODOToolWindow)
" Git
map <leader>gg <Action>(CheckinProject)
map <leader>gp <Action>(Vcs.UpdateProject)
map <leader>gP <Action>(Vcs.Push)
map <leader>gb <Action>(Annotate)
" Debug
map <leader>Db <Action>(ToggleLineBreakpoint)
map <leader>DB <Action>(ToggleLineBreakpoint)
map <F5> <Action>(Debug)
map <F6> <Action>(EvaluateExpression)
map <F10> <Action>(StepOver)
map <F11> <Action>(StepInto)
map <F12> <Action>(StepOut)
xmap gc <Action>(CommentByLineComment)
" Test
map <leader>ot <Action>(GotoTest)
map <leader>ct <Action>(GenerateTestMethod)
map <leader>C <Action>(Generate)
map <leader>tt <Action>(RunClass)
" Completion
imap <C-f> <Action>(CodeCompletion)
" LSP
map gD <Action>(GotoTypeDeclaration)
map gd <Action>(GotoDeclaration)
map gi <Action>(GotoImplementation)
map gr <Action>(GotoDeclaration)
map <leader>rn <Action>(RenameElement)
map <leader>oc <Action>(ReformatCode)
map <leader>oi <Action>(OptimizeImports)
map <leader>oa <Action>(ReformatCode)<Action>(OptimizeImports)
map <leader>jev <Action>(IntroduceVariable)
map <leader>jec <Action>(IntroduceConstant)
map <leader>jem <Action>(ExtractMethod)
map K <Action>(QuickJavaDoc)
imap <C-s> <Action>(ParameterInfo)
map <C-s> <Action>(ParameterInfo)
map <leader>s <Action>(GotoSymbol)
map <leader>S <Action>(GotoSymbol)
map <leader>a <Action>(ShowIntentionActions)
map <leader><leader>T <Action>(VimFindActionIdAction)