-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.ideavimrc
33 lines (28 loc) · 1.12 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
source ~/.vimrc
" forward/back history navigation
map ,d :action Back<cr>
map ,f :action Forward<cr>
" Disable bell
" via http://superuser.com/a/677312
set visualbell
set noerrorbells
" Custom mappings for actions provided ivia IdeaVIM
" For a large list of available actions, see
" https://gist.github.com/zchee/9c78f91cc5ad771c1f5d
nmap <leader>a :action Annotate<cr>
nmap <leader>c :action QuickJavaDoc<cr>
nmap <leader>e :action ShowErrorDescription<cr>
nmap <leader>r :action FileStructurePopup<cr>
nmap <leader>t :action SearchEverywhere<cr>
nmap <leader>w :action ShowIntentionActions<cr>
nmap <leader>b :action RecentFiles<cr>
nmap <leader>v :action RunClass<cr>
nmap <leader>q :action ChooseRunConfiguration<cr>
nmap <C-6> :action FileStructurePopup<cr>
imap <C-6> <C-o>:action FileStructurePopup<cr>
" Inspired by https://github.com/tpope/vim-vinegar
" Simply press `-` in normal mode to hop into IntelliJ's navigation bar, which
" sort of acts like vim's netrw mode to give me keyboard-driven filesystem
" navigation relative to the file I had open.
noremap - :action ShowNavBar<cr>
map <silent> <leader>V :source ~/.ideavimrc<cr>