forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
46 lines (35 loc) · 1.18 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
source ~/.vimrc
" Make the editor wait less for the fd (replacement for ESC) sequence to finish
set timeoutlen=1000
set incsearch
set surround
noremap <Space>wh <C-w>h
noremap <Space>wj <C-w>j
noremap <Space>wk <C-w>k
noremap <Space>wl <C-w>l
" GitHub
nnoremap <Space>gll :action Github.Open.In.Browser<CR>
vnoremap <Space>gll :action Github.Open.In.Browser<CR>
nnoremap <C-o> :action Back<CR>
nnoremap <C-i> :action Forward<CR>
nnoremap <Space>/ :action FindInPath<CR>
nnoremap <Space>pf :action GotoFile<CR>
nnoremap <Space>ph :action GotoFile<CR>
nnoremap <Space>wv :action SplitVertically<CR>
nnoremap <Space>ws :action SplitHorizontally<CR>
nnoremap <Space>wd :action Unsplit<CR>
nnoremap <Space>: :action GotoAction<CR>
nnoremap <Space>mgg :action GotoDeclaration<CR>
nnoremap <Space>mgt :action GotoTest<CR>
" Refactoring
"" Rename symbol
nnoremap <Space>mrr :action RenameElement<CR>
nnoremap <Space>mri :action OptimizeImports<CR>
" Formatting
nnoremap <Space>m== :action ReformatCode<CR>
" Build
nnoremap <Space>mc :action Compile<CR>
" User commands
nnoremap <Space>or :action Run<CR>
nnoremap <Space>oc :action GotoClass<CR>
nnoremap <Space>of :action ProblemsView.QuickFixes<CR>