-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
75 lines (61 loc) · 2.33 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
65
66
67
68
69
70
71
72
73
74
" Load vim configs
source ~/.vimrc
" Fast reload .ideavimrc
map <leader>si :source ~/.ideavimrc<CR>
" Plugins
set NERDTree
set commentary
set surround
set ideajoin
set multiple-cursors
set highlightedyank
let g:highlightedyank_highlight_duration = "40"
" Enable native idea paste action for put operations
set clipboard+=ideaput
" Disable bells
set visualbell
" Keymaps
map <Leader>p <Action>(GotoFile)
map <Leader>o <Action>(SearchEverywhere)
map <Leader>f <Action>(FindInPath)
map <Leader>F <Action>(ReformatCode)
map <Leader>r <Action>(RenameElement)
map <Leader>R <Action>(RenameInPath)
map <Leader>a <Action>(ShowIntentionActions)
map <Leader>A <Action>(Refactorings.QuickListPopupAction)
map <Leader>v <Action>(ShowErrorDescription)
map <Leader>H <Action>(Replace)
map <Leader>h <Action>(ReplaceInPath)
map <Leader>d <Action>(EditorDuplicate)
map <Leader>g <Action>(Generate)
" map <C-t> <Action>(ActivateTerminalToolWindow)
" map <C-w> <Action>(HideAllWindows)
" map <C-A-z> <Action>(ToggleZenMode)
" map <C-A-o> <Action>($ShowTranslationDialogAction)
" map <Leader>e :NERDTreeFocus<CR>
nmap gn <Action>(GotoNextError)
nmap gp <Action>(GotoPreviousError)
nmap gd <Action>(GotoDeclaration)
nmap gi <Action>(GotoImplementation)
nmap gu <Action>(ShowUsages)
map <C-i> <Action>(Back)
map <C-o> <Action>(Forward)
map <Leader><Tab> <Action>(PreviousTab)
map <Tab> <Action>(NextTab)
nmap <A-j> <Action>(MoveStatementDown)
nmap <A-k> <Action>(MoveStatementUp)
vmap <A-j> <Action>(MoveStatementDown)
vmap <A-k> <Action>(MoveStatementUp)
nmap <C-A-j> <Action>(EditorCloneCaretBelow)
nmap <C-A-k> <Action>(EditorCloneCaretAbove)
nmap gcc <Action>(CommentByLineComment)
vmap gcc <Action>(CommentByLineComment)<Esc>
vmap gbc <Action>(CommentByBlockComment)<Esc>
" Plugins Keymaps
nmap <Leader>e :NERDTreeFocus<CR>
nmap <C-n> <Plug>NextWholeOccurrence
xmap <C-n> <Plug>NextWholeOccurrence
nmap <C-x> <Plug>SkipOccurrence
xmap <C-x> <Plug>SkipOccurrence
nmap <S-C-n> <Plug>AllWholeOccurrences
xmap <S-C-n> <Plug>AllWholeOccurrences