-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathideavimrc
233 lines (179 loc) · 5.96 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
let mapleader=" "
" set notimeout
" set nottimeout
set ideajoin
" set ideaput
set nowrapscan
" map <c-f> <action>(EditorPageUp)
" map <c-b> <action>(EditorPageDown)
nmap <leader>G <action>(Generate)
nmap <leader>g <action>(Generate)
nmap <leader>, <action>(PreviousTab)
nmap <c-,> <action>(PreviousTab)
nmap <leader>. <action>(NextTab)
nmap <c-.> <action>(NextTab)
nmap ,e <action>(EditorTextEndWithSelection)
nmap <leader>A <action>(VimFindActionIdAction)
map zi <action>(ExpandAllRegions)
map ]] <action>(EditorCodeBlockEnd)
map ]} <action>(EditorCodeBlockEndWithSelection)
map [[ <action>(EditorCodeBlockStart)
map [{ <action>(EditorCodeBlockStartWithSelection)
map cow <action>(EditorToggleUseSoftWraps)
map ]s <action>(EditorUpWithSelection)
map [s <action>(EditorDownWithSelection)
map ]f <action>(MethodDown)
map [f <action>(MethodUp)
map [e I<cr><esc>
map [<space> I<cr><esc>
" map dil ddI<cr><esc>0
map <a-n> <action>(NextOccurence)
map <a-p> <action>(PreviousOccurence)
map ]r <action>(NextOccurence)
map [r <action>(PreviousOccurence)
map ]d <action>(Diff.PrevChange)
map zz <action>(EditorScrollToCenter)
set ignorecase
" set scrolloff=20
set scrolloff=999
set incsearch
set showmode
set ideastatusicon=gray
set idearefactormode=keep
set NERDTree
map <f2> :NERDTreeFind<cr>
map <f3> :NERDTree<cr>
let g:NERDTreeMapActivateNode='l'
let g:NERDTreeMapJumpParent='h'
set highlightedyank
nnoremap <leader>E :edit ~/.ideavimrc<CR>
map <C-c> <Esc>
vnoremap < <gv
vnoremap > >gv
let g:highlightedyank_highlight_duration = "1000"
Plug 'https://github.com/tommcdo/vim-exchange'
Plug 'https://github.com/machakann/vim-highlightedyank'
set surround
set multiple-cursors
set commentary
set argtextobj
" set easymotion
set textobj-entire
set ReplaceWithRegister
map <leader>f <Plug>(easymotion-s)
map <leader>e <Plug>(easymotion-f)
map <leader>D <Action>(Debug)
map <leader>md <Action>(Debug
" map <leader>R <Action>(android.deploy.ApplyChanges)
map <leader>x <Action>(CloseContent)
map <leader>X <Action>(CloseAllEditorsButActive)
" Window management
map <c-x> <Action>(CloseContent)
map <c-wx> <Action>(CloseContent)
map <leader>tt :action ActivateStructureToolWindow<cr>
map ,A <Action>(VimFindActionIdAction)
map <c-w>K <Action>(ResizeToolWindowUp)
map <c-w>L <Action>(ResizeToolWindowDown)
map <c-w>m <Action>(ZoomCurrentWindow)
map <c-w>e <Action>(ActivateEventLogToolWindow)
map <c-w>E <Action>(ActivateEventLogToolWindow)
nnoremap <c-w>= :action Unsplit<CR>
nnoremap <c-w>k :action Unsplit<CR>
nnoremap <leader>en :action EditSourceInNewWindow<CR>
map <c-wl> <Action>(SplitVertically)
map <c-wL> <Action>(ChangeSplitOrientation)
map <c-w><c-l> <Action>(SplitVertically)
map <c-w><c-j> <Action>(SplitHorizontally)
map <c-l> <Action>(NextSplitter)
map <c-j> <Action>(NextSplitter)
map <c-h> <Action>(PrevSplitter)
map <c-k> <Action>(PrevSplitter)
map <c-[> <Action>(EditorEsc)
map <c-s-t> <Action>(ReopenClosedTab)
map <c-e> <Action>(RecentFiles)
map <leader>b <Action>(Run)
map <leader>O <Action>(OpenFile)
map <leader>b <Action>(RecentFiles)
map <c-/> <Action>(RecentFiles)
map q <Action>(RecentFiles)
map <leader>U <Action>(ReopenClosedTab)
map <leader>u <Action>(ReopenClosedTab)
map <leader>R <Action>(IdeaVim.ReloadVimRc.reload)
map gh <Action>(ShowErrorDescription)
map <leader>s :w<cr>
" Git
map <leader>gd <Action>(Compare.SameVersion)
map <leader>gd <Action>(Annotate)
map <leader>gb <Action>(Annotate)
map ]c <Action>(VcsShowNextChangeMarker)
map [c <Action>(VcsShowPrevChangeMarker)
" map ]c <Action>(NextDiff)
" map [c <Action>(PreviousDiff)
map <leader>gs <Action>(ActivateVersionControlToolWindow)
map <leader>gl <Action>(LocalHistory.ShowHistory)
map <leader>gv <Action>(Vcs.ShowTabbedFileHistory)
map <leader>G <action>(Git.Menu)
nmap <leader>/ <action>(ShowErrorDescription)
map <leader>gg <action>(Generate)
map <leader>YP <Action>(CopyAbsolutePath)
map YP <Action>(CopyAbsolutePath)
map g; <Action>(JumpToLastChange)
map <leader>i <Action>(ShowIntentionActions)
map <leader>mr <Action>(Run)
map <leader>mm <Action>(Run)
map <leader>mc <Action>(RunConfiguration)
" map <leader>mm <Action>(MakeGradleProject)
map <leader>mM <Action>(MakeGradleProject)
map <leader>mb <Action>(ActivateBuildToolWindow)
map <leader>M <Action>(BuildMenu)
map <leader>N <Action>(NewElement)
map <c-o> <Action>(Back)
map <c-i> <Action>(Forward)
map U <Action>(Redo)
map <leader>C <Action>(ChangeSignature)
" Debug
map <leader>db <Action>(ToggleLineBreakpoint)
map <leader>dB <Action>(ToggleLineBreakpoint)
map <leader>dw <Action>(Debugger.AddToWatch)
" map <leader>dd <Action>(Debugger.ShowExecutionPoint)
map <leader>da <Action>(AndroidConnectDebuggerAction)
map <leader>dc <Action>(Debugger.AddInlineWatch)
map <leader>di <Action>(Debugger.AddInlineWatch)
map <leader>dr <Action>(Resume)
map <leader>df <Action>(StepOver)
map <leader>dF <Action>(StepInto)
map <leader>dF <Action>(StepOut)
map <leader>B <Action>(Stop)
set clipboard+=unnamed
map ]n <Action>(GotoNextError)
map <c-n> <Action>(GotoNextError)
map ]p <Action>(GotoPreviousError)
map <c-p> <Action>(GotoPreviousError)
map <a-.> <Action>(Tree-selectNext)
map <m-,> <Action>(Tree-selectNext)
nnoremap ,r :action ContextRun<CR>
nnoremap ,c :action RunClass<CR>
nnoremap ,f :action ChooseRunConfiguration<CR>
nnoremap ,t :action ActivateRunToolWindow<CR>
nnoremap ,u :action Rerun<CR>
nnoremap ,b :action ToggleLineBreakpoint<CR>
nnoremap ,d :action ContextDebug<CR>
nnoremap ,n :action ActivateDebugToolWindow<CR>
map <leader>r :action Refactorings.QuickListPopupAction<CR>
map ,r <Action>(RenameElement)
map <leader>L <action>(ActivateLogcatToolWindow)
map <leader>ml <action>(ActivateLogcatToolWindow)
map <leader>wr <action>(ActivateRunToolWindow)
map <leader>wb <action>(ActivateBuildToolWindow)
" map <leader>wb <action>()
" map <leader>wb <action>()
set showmode
imap <c-j> <cr>
map <leader>w :action EditorSelectWord<CR>
map <leader>W viW EditorSelectWord<CR>
" Fix the search highlight
set incsearch
set hlsearch
set nowrapscan
nnoremap <CR> :noh<CR><CR>
echo "ideamvimrc loaded."