-
Notifications
You must be signed in to change notification settings - Fork 11
/
.ideavimrc
64 lines (49 loc) · 1.81 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
" https://github.com/JetBrains/ideavim/blob/master/doc/set-commands.md
" https://github.com/MarcoIeni/intellimacs/blob/master/docs/KEYBINDINGS.org
source ~/.intellimacs/spacemacs.vim
source ~/.intellimacs/extra.vim
source ~/.intellimacs/major.vim
set surround
set commentary
set multiple-cursors
set ideajoin
set idearefactormode select
set selectmode ideaselection
" actionlist <item>
" https://gist.github.com/zchee/9c78f91cc5ad771c1f5d
" Integrate with system clipboard
set clipboard=unnamedplus,unnamed
let mapleader=" "
nmap <leader>ou :action Tool_External Tools_Emacs<CR>
nmap <leader>oo :action Tool_External Tools_Emacs<CR>
nmap <leader>op :action Tool_External Tools_Sublime<CR>
nmap <leader>oi :action Tool_External Tools_iTerm<CR>
nmap <leader>ot :action Tool_External Tools_Org Capture<CR>
nmap <leader>ov :source ~/.ideavimrc<CR>
nmap <leader>ij o<ESC>k
nmap <leader>ik ko<ESC>j
nmap <leader>/ :action FindModal<CR>
nmap <leader>pp :action ManageRecentProjects<CR>
nmap <leader>wm :action UnsplitAll<CR>
nnoremap <leader>1 <C-w>h
nnoremap <leader>2 <C-w>l
nmap <leader>ji :action FileStructurePopup<CR>
nmap <leader>jj :action FileStructurePopup<CR>
nmap <leader><leader> :action GotoAction<CR>
nmap <leader>gs :action Vcs.QuickListPopupAction<CR>
nmap ,l :action LocalHistory.ShowHistory<CR>
nmap ,L :action LocalHistory.ShowSelectionHistory<CR>
nmap ,r :action Refactorings.QuickListPopupAction<CR>
nmap ,R :action Git.ResolveConflicts<CR>
nmap ,c :action Compile<CR>
nmap ,C :action CompileProject<CR>
nmap ,d :action Debug<CR>
nmap ,D :action ChooseDebugConfiguration<CR>
nmap <leader>ji :action FileStructurePopup<CR>
nmap <leader>ff :action GotoFile<CR>
nmap gf :action GotoFile<CR>
nmap gs :action GotoSymbol<CR>
nmap gm :action GotoImplementation<CR>
nmap [p ko<ESC>p
nmap ]p o<ESC>p
source ~/.vimrc