-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathideavimrc
executable file
·67 lines (51 loc) · 1.85 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
" Intellij IDEA OSX Mappings
map <C-S-]> :action GotoImplementation<CR>
map <leader>x :action Run<CR>
map <leader>X :action ChooseRunConfiguration<CR>
map <leader>b :action CompileDirty<CR>
"TODO: add \B for build all
nmap <C-P> :action GotoFile<CR>
nmap <M-P> :action GotoFile<CR>
nmap ]q :action GotoNextError<CR>
nmap [q :action GotoPreviousError<CR>
"Buffers
nmap ]b :action NextTab<CR>
nmap [b :action PreviousTab<CR>
"Saving file
nmap <Leader>s :action SaveAll<CR>
nmap <Leader>s :action SaveAll<CR>
"Windows
nmap <A-W> :action CloseContent<CR>
"IDE specific
map <Leader>u :action SurroundWith<CR>
nmap <A-CR> :action ShowIntentionActions<CR>
nmap <M-CR> :action ShowIntentionActions<CR>
set ideajoin "https://github.com/JetBrains/ideavim/blob/master/doc/ideajoin-examples.md
"Navigation
nmap <C-o> <Action>(Back)
nmap <C-i> <Action>(Forward)
"Yank to clipboard by default
set clipboard+=unnamed
"set clipboard+=unnamedplus
" Parameter hInts.
imap <Leader>i <C-O>:action ParameterInfo<CR>
nmap <Leader>i :action ParameterInfo<CR>
" Refactor
imap <Leader>r <Esc>:action RenameElement<CR>
nmap <Leader>r :action RenameElement<CR>
map <Leader>R :action Refactorings.QuickListPopupAction<CR>
" vnoremap <Leader>R :<bs><bs><bs><bs><bs>action VimVisualSwapSelections<cr>:action Refactorings.QuickListPopupAction<cr>
"IDE Settings
nmap <A-,> :action ShowSettings<CR>
"Breakpoints. you can use Alt shortcuts here as we don't have VIM ones yet.
"FIXME: this is not working. figure out why.
nmap <A-B> :action ToggleBreakpointAction<CR>
"Definition Outline list (aka outline view in eclipse, file structure in intellij ide)
nmap <Leader>o :action FileStructurePopup<CR>
"Find usages, also called find references
nmap <Leader>g :action FindUsages<CR>
nmap <Leader>Gc :action GenerateConstructor<CR>
"surround
set surround
autocmd FileType css,html set iskeyword+=-
packadd matchit