-
Notifications
You must be signed in to change notification settings - Fork 0
/
ideavimrc
42 lines (37 loc) · 1.23 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
source ~/.vimrc
let mapleader = " "
" Enable vim-surround emulation
set surround
" Set relative line numbering
set rnu
" Integrate with the system clipboard
set clipboard=unnamedplus
" copy and paste to system clipboard
"noremap <Leader>y "*y
"noremap <Leader>Y "*Y
"noremap <Leader>p "*p
"noremap <Leader>P "*P
" code navigation
nnoremap <Leader>u :action FindUsages<cr>
nnoremap <Leader>gd :action GotoDeclaration<cr>
nnoremap <Leader>i :action GotoImplementation<cr>
nnoremap <Leader>sm :action GotoSuperMethod<cr>
nnoremap <Leader>t :action GotoTest<cr>
nnoremap <Leader>o :action GotoFile<cr>
nnoremap <Leader>oc :action GotoClass<cr>
nnoremap <Leader>os :action GotoSymbol<cr>
nnoremap <Leader>O :action FileStructurePopup<cr>
nnoremap <Leader><BS> :action Back<cr>
nnoremap <Leader>f :action Forward<cr>
" actions
nnoremap <Leader>r :action ChooseRunConfiguration<cr>
nnoremap <Leader>d :action ChooseDebugConfiguration<cr>
nnoremap <Leader>q :action CloseContent<cr>
nnoremap <Leader>Q :action ReopenClosedTab<cr>
nnoremap <Leader>b :action ToggleLineBreakpoint<cr>
" windows specific
nnoremap <A-d> :action VimMotionScrollHalfPageDown<cr>
nnoremap <A-u> :action VimMotionScrollHalfPageUp<cr>
" Disable bell sounds
set visualbell
set noerrorbells