-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
executable file
·65 lines (48 loc) · 1.42 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
source ~/.vimrc
let mapleader = ' '
set surround
set visualbell
inoremap jk <Esc>
nnoremap si :action ShowIntentionActions<CR>
" easy window navigation
nnoremap <c-l> <c-w>l
nnoremap <c-j> <c-w>j
nnoremap <c-h> <c-w>h
nnoremap <c-k> <c-w>k
nnoremap <c-b> <c-v>
" nnoremap <c-h> <Left>
" nnoremap <c-j> <Down>
" nnoremap <c-k> <Up>
" nnoremap <c-l> <Right>
" use idea find
nnoremap / :action Find<CR>
nnoremap n :action FindNext<CR>
nnoremap N :action FindPrevious<CR>
nnoremap U :action $Redo<CR>
" refactor actions
nnoremap <space>r :action ReformatCode<CR>
" goto actions
nnoremap gc :action GotoClass<CR>
nnoremap gn :action GotoFile<CR>
nnoremap gs :action GotoSymbol<CR>
nnoremap gi :action GotoImplementation<CR>
nnoremap gd :action GotoDeclaration<CR>
nnoremap gu :action GotoSuperMethod<CR>
" nnoremap gn :action ShowNavBar<CR>
nnoremap gf :action Forward<CR>
nnoremap gb :action Back<CR>
nnoremap gt :action GotoTest<CR>
" compile and run actions
nnoremap cm :action Compile<CR>
nnoremap cr :action Rebuild<CR>
nnoremap cv :action Run<CR>
nnoremap cd :action Debug<CR>
" VCS
nnoremap <leader>gp :action Vcs.Push<CR>
nnoremap <leader>gc :action Vcs.CommitProject<CR>
nnoremap <leader>gf :action Vcs.UpdateProject<CR>
nnoremap [c :action VcsShowPrevChangeMarker<CR>
nnoremap ]c :action VcsShowNextChangeMarker<CR>
nnoremap <leader>rr :action ReformatCode<CR><Esc>
nnoremap <leader>p :action ParameterInfo<CR>
nnoremap <leader>q <c-q>