-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathideavimrc
73 lines (54 loc) · 1.73 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
" EXTENSIONS
set surround " vim-surround
set commentary " commentary
" join lines via the IDE
set ideajoin
set hlsearch
set incsearch
" intellij has no functional visual bell
set visualbell
set noerrorbells
set ignorecase smartcase
" Y should yield to the end of the line
noremap Y y$
" search for visual selection
vnoremap // y/<C-R>"<CR>
" easy system clipboard copy/paste
noremap <space>y "*y
noremap <space>Y "*Y
noremap <space>p "*p
noremap <space>P "*P
inoremap <c-n> <Down>
inoremap <c-p> <Up>
nnoremap <space>rr :action Run<cr><esc>
nnoremap <space>rt :action RerunTests<cr>
nnoremap <space>rft :action RerunFailedTests<cr>
nnoremap <space>qq :action Exit<cr>
nnoremap <space>g :action Generate<cr>
nnoremap <space>I :action ImplementMethods<cr>
nnoremap <space>v :action IntroduceVariable<cr>
nnoremap <space>re :action RenameElement<cr>
nnoremap <space>l :action ReformatCode<cr>
nnoremap <space>o :action OptimizeImports<cr>
nnoremap <space>nc :action NewClass<cr>
nnoremap <space>nf :action NewFile<cr>
nnoremap <space>s :nohlsearch<cr>
nnoremap <space>S :action SurroundWith<cr>
nnoremap <space>C :source ~/.ideavimrc<cr>
" Navigation
nnoremap <space>f :action GotoFile<cr>
nnoremap <space>w :action ActivateProjectToolWindow<cr>
nnoremap <c-j> :action NextTab<cr>
nnoremap <c-k> :action PreviousTab<cr>
nnoremap ]l :action GotoNextError<cr>
nnoremap [l :action GotoPreviousError<cr>
nnoremap g<c-o> :action Back<cr>
nnoremap g<c-i> :action Forward<cr>
nnoremap g; :action JumpToLastChange<cr>
nnoremap g, :action JumpToNextChange<cr>
" Hide all tool windows
nnoremap <space>c :action HideAllWindows<cr>
" Flutter
nnoremap <space>h :action Flutter.Toolbar.ReloadAction<cr>
" Git
vnoremap <space>gh :action Vcs.ShowHistoryForBlock<cr>