-
Notifications
You must be signed in to change notification settings - Fork 1
/
ideavimrc
31 lines (29 loc) · 1.02 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
set sneak
set ideajoin
set matchit
set surround
set commentary
set multiple-cursors
source ~/.vim/core.vim
source ~/.vim/conf.d/keymap.vim
nnoremap <leader>ev :e ~/.ideavimrc<cr>
nnoremap <leader>rr :source ~/.ideavimrc<cr>
nnoremap <leader>bd :bd!<cr>
xmap <leader>ci <Plug>Commentary
nmap <leader>ci <Plug>Commentary
omap <leader>ci <Plug>Commentary
nmap <leader>ci <Plug>CommentaryLine
nmap <leader>cc <Plug>CommentaryLine
vmap <leader>cc <Plug>CommentaryLine
nnoremap <leader>qq :action CloseProject<cr>
nnoremap <leader>ff :action GotoFile<cr>
nnoremap <leader>, :action ReformatCode<cr>
nnoremap <leader>/ :action SearchEverywhere<cr>
nnoremap <leader>. :action FindInPath<cr>
nnoremap <leader>rn :action RenameElement<cr>
nnoremap <leader>ac :action ShowIntentionActions<cr>
vnoremap <leader>ac :action ShowIntentionActions<cr>
nnoremap R :action RenameElement<cr>
nnoremap gd :action GotoDeclaration<cr>
nnoremap gi :action GotoImplementation<CR>
nnoremap K :action FindUsages<CR>