-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
105 lines (76 loc) · 2.96 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => IdeaVimRC - IntelliJ IDEA-specific Vim Configurations
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Source the main VimRC to reuse all shared settings and mappings
source ~/.vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Navigation Mappings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Pane navigation
nmap <Leader>h :action FocusPreviousWindow<CR>
nmap <Leader>l :action FocusNextWindow<CR>
" Navigate to declaration or usages
nmap <Leader>d :action GotoDeclaration<CR>
nmap <Leader>u :action FindUsages<CR>
" Open project structure
nmap <Leader>s :action ShowStructureViewPopup<CR>
" Open recent files popup
nmap <Leader>e :action RecentFiles<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => File and Tab Management
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Save all files
nmap <Leader>w :action SaveAll<CR>
" Close current tab
nmap <Leader>x :action CloseActiveTab<CR>
nmap <Leader>q :action CloseActiveTab<CR>
" Toggle terminal
nmap <Leader>t :action ActivateTerminalToolWindow<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Code Editing and Refactoring
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Comment code
nmap <Leader>c :action CommentByLineComment<CR>
" Open refactor menu
nmap <Leader>r :action Refactorings.QuickListPopupAction<CR>
" Format code
nmap <Leader>f :action ReformatCode<CR>
" Optimize imports
nmap <Leader>i :action OptimizeImports<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Search and Replace
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Search All
nmap <Leader>F :action SearchEverywhere<CR>
" Find and Replace
nmap <Leader>R :action ReplaceInPath<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Run and Debug
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Run mappings
nmap <Leader>rr :action Run<CR>
nmap <Leader>rc :action RunClass<CR>
" Debug mappings
nmap <Leader>d :action Debug<CR>
nmap <Leader>dc :action DebugClass<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Bookmarks and TODOs
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Show TODO list
nmap <Leader>td :action TODOView<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Miscellaneous
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Open settings
nmap <Leader>o :action ShowSettings<CR>
" IntelliJ-specific Git command
nmap <Leader>g :action Git<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Plugins
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" QuickScope
set quickscope
let g:qs_lazy_highlight = 1
let g:qs_highlight_on_keys = ['f', 't', 'F', 'T']
highlight QuickScopePrimary guifg=#ff4500 gui=bold
highlight QuickScopeSecondary guifg=#696969