-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.ideavimrc
36 lines (29 loc) · 1 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
" .ideavimrc is a configuration file for IdeaVim plugin.
" It uses the same commands as the original .vimrc configuration.
" You can find a list of commands here: https://jb.gg/h38q75
" Find more examples here: https://jb.gg/share-ideavimrc
" Source your .vimrc
source ~/.vimrc
" Override settings from .vimrc
set number " show line numbers
set cursorline " highlight the screen line of the cursor
" Use system clipboard
set clipboard+=unnamed
" GoTo keybindings
map gd <Action>(GotoDeclaration)
map ge <Action>(GotoNextError)
map gi <Action>(GotoImplementation)
map gt <Action>(GotoTypeDeclaration)
map gT <Action>(GotoTest)
map gu <Action>(GotoDeclaration) " Go to usage and declaration are the same action in IntelliJ
" Navigate history
map gb <Action>(JumpToLastChange)
map gf <Action>(JumpToNextChange)
" Comment code
map <D-/> <Action>(CommentByLineComment)
map <D-/> <Action>(CommentByLineComment)
" Indentation
nnoremap <D-]> >>_
nnoremap <D-[> <<_
vnoremap <D-]> >gv
vnoremap <D-[> <gv