-
Notifications
You must be signed in to change notification settings - Fork 0
/
ideavimrc
90 lines (72 loc) · 3.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
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
set gdefault
set ignorecase
" Clipboard
set clipboard+=unnamed
" Escape
vnoremap <C-[> <Esc>
" Moving blocks of text in visual mode
vnoremap < <gv
vnoremap > >gv
" Select all text
map <Space>a ggVG
" vim-surround
set surround
" ============================================================================
" Editor control
" ============================================================================
" Reload .ideavimrc
nnoremap <Space>vs :source ~/.ideavimrc<CR>
" ============================================================================
" IDE actions
" ============================================================================
nnoremap / :action Find<CR>
nnoremap n :action FindNext<CR>
nnoremap N :action FindPrevious<CR>
nnoremap U :action $Redo<CR>
nnoremap <Space>R :action Replace<CR>
" Acejump
" nnoremap f :action AceJumpAction<CR>
" nnoremap <Space>jj :action AceJumpAction<CR>
" nnoremap <Space>jl :action AceJumpLineAction<CR>
" emacsIDEAs
nnoremap <Space>jj :action emacsIDEAs.AceJump<CR>
nnoremap <Space>jw :action emacsIDEAs.AceJumpWord<CR>
nnoremap <Space>jc :action emacsIDEAs.AceJumpCut<CR>
" Goto
nnoremap <Space>gc :action GotoClass<CR>
nnoremap <Space>gf :action GotoFile<CR>
nnoremap <Space>gs :action GotoSymbol<CR>
nnoremap <Space>gt :action GotoTest<CR>
nnoremap <Space>gd :action GotoDeclaration<CR>
nnoremap <Space>gl :action GotoLine<CR>
nnoremap <Space>gi :action GotoImplementation<CR>
" Help
nnoremap <Space>hd :action QuickJavaDoc<CR>
nnoremap <Space><Space> :action GotoAction<CR>
" Refactor
nnoremap <Space>rr :action ReformatCode<CR>
" New
nnoremap <Space>nf<Space> :action NewFile<CR>
nnoremap <Space>nc<Space> :action NewClass<CR>
nnoremap <Space>nd<Space> :action NewDir<CR>
nnoremap <Space>npi<Space> :action NewPackageInfo<CR>
nnoremap <Space>ns<Space> :action NewScratchFile<CR>
nnoremap <Space>ng :action Generate<CR>
" File related
nnoremap <Space>fr :action RecentFiles<CR>
nnoremap <Space>fd :action CloseContent<CR>
" Git
nnoremap <Space>Ga :action Git.Add<CR>
nnoremap <Space>Gb :action Git.Branches<CR>
nnoremap <Space>Gl :action Git.Log<CR>
nnoremap <Space>GG :action Vcs.QuickListPopupAction<CR>
nnoremap <Space>Gp :action Vcs.Push<CR>
nnoremap <Space>Gu :action Vcs.UpdateProject<CR>
" Window
nnoremap <Space>w/ :action VimWindowSplitVertical<CR>
nnoremap <Space>w- :action VimWindowSplitHorizontal<CR>
nnoremap <Space>wj :action VimWindowDown<CR>
nnoremap <Space>wk :action VimWindowUp<CR>
nnoremap <Space>wh :action VimWindowLeft<CR>
nnoremap <Space>wl :action VimWindowRight<CR>
nnoremap <Space>wc :action VimWindowClose<CR>