-
Notifications
You must be signed in to change notification settings - Fork 7
/
.ideavimrc
46 lines (40 loc) Β· 1.14 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
set surround
set commentary
set idearefactormode=keep
set hlsearch
set ignorecase
set smartcase
" Disable arrow keys
nnoremap <Up> <Nop>
nnoremap <Down> <Nop>
nnoremap <Left> <Nop>
nnoremap <Right> <Nop>
inoremap <Up> <Nop>
inoremap <Down> <Nop>
inoremap <Left> <Nop>
inoremap <Right> <Nop>
" don't lose selection when indenting
vnoremap < <gv
vnoremap > >gv
" code navigation
nmap <space>e :action GotoFile<CR>
nmap <C-o> :action Back<CR>
nmap <C-i> :action Forward<CR>
nmap gD :action GotoImplementation<CR>
nmap gu :action ShowUsages<CR>
nmap gU :action FindUsages<CR>
nmap gq :action QuickJavaDoc<CR>
nmap <space>p :action ParameterInfo<CR>
nmap <space>n :action GotoNextError<CR>
nmap <space>a :action GotoAction<CR>
" editing / refactoring
" nmap gcc :action CommentByLineComment<CR>
nmap <space>r :action RenameElement<CR>
nmap <space>m :action ExtractMethod<CR>
vnoremap <space>m :action ExtractMethod<CR>
nmap <space>v :action IntroduceVariable<CR>
nmap <space>i :action Inline<CR>
nmap <space>o :action OptimizeImports<CR>
nmap <space>g :action Generate<CR>
nmap <space>t :action Run<CR>
nnoremap <space>f :action ReformatCode<CR>