-
Notifications
You must be signed in to change notification settings - Fork 0
/
ideavimrc
40 lines (31 loc) · 1.04 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
nmapclear
"Useful commands to remember
"(normal mode) ysiwf - surround word with function call
"(visual mode) Sf - surround selection with a function call
set surround
set commentary
set ideamarks
set clipboard+=unnamed " use system clipboard
let mapleader=" "
nnoremap <leader>R :source ~/.ideavimrc<cr>
nnoremap <leader>E :e ~/.ideavimrc<cr>
nnoremap <leader>n :back<cr>
nnoremap <leader>m :next<cr>
nnoremap <leader>w :w<cr>
nnoremap <leader>U gUiw<cr> " Uppercase a word
" IDE actions
map <leader>f <Action>(ReformatCode)
map <leader>o <Action>(OptimizeImports)
map <leader>x <Action>(Maven.ExecuteGoal)
map <leader>gc <Action>(GotoClass)
map <leader>gd <Action>(GotoDeclaration)
map <leader>gi <Action>(GotoImplementation)
map <leader>tt <Action>(GenerateTestMethod)
map <leader>gg <Action>(Generate)
map <leader>bb <Action>(BuildMenu)
map <leader>d <Action>(QuickJavaDoc)
map <leader>[ <Action>(PreviousTab)
map <leader>] <Action>(NextTab)
map <leader>T <Action>(RerunFailedTests)
map <leader>r <Action>(RunMenu)
map <leader>b <Action>(ByteCodeViewer)