-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
112 lines (99 loc) · 3.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
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
105
106
107
108
109
110
111
112
" See available commands with
" :actionlist <search>
"
" Check conflicting keybinds under
" Settings -> Editor -> Vim-Emulation
"
" Keybinds to set in the IDE
" <C-H> => <Left>
" <C-J> => <Down>
" <C-K> => <Up>
" <C-L> => <Right>
"
" Improvements
" <C-N>/<C-P> don't work in structure popup when filtered
let mapleader = " "
" GENERAL
set visualbell
set noerrorbells
set relativenumber
set number
set scrolloff=8
" PLUGINS
set surround
" IDEA
set ideastatusicon
set ideamark
set ideajoin
" SEARCH
set showmatch
set nohlsearch
set ignorecase
set smartcase
set incsearch
nmap <leader>h :noh<CR>
" NAVIGATION
nmap <C-S-l> <C-W>l
nmap <C-S-h> <C-W>h
nnoremap <C-D> <S-M>_<C-D>
nnoremap <C-U> <S-M>_<C-U>
nmap <C-O> <Action>(Back)
nmap <C-I> <Action>(Forward)
" SPLITS/TABS
set splitbelow
set splitright
nmap <C-PageDown> <Action>(NextTab)
nmap <C-PageUp> <Action>(PreviousTab)
" CODE NAVIGATION
nmap <leader>o <Action>(FileStructurePopup)
nmap <C-S-d> <Action>(GotoDeclaration)
nmap <leader>gd <Action>(GotoDeclaration)
nmap <leader>gt <Action>(GotoTypeDeclaration)
nmap <leader>gu <Action>(FindUsages)
nmap <C-S-u> <Action>(ShowUsages)
nmap <leader>gi <Action>(GotoImplementation)
nmap g, <Action>(JumpToNextChange)
nmap g; <Action>(JumpToLastChange)
nmap <F2> <Action>(GotoNextError)
nmap <F14> <Action>(GotoPreviousError)
" QUICK PREVIEWS
nmap <leader>qd <Action>(QuickImplementations)
nmap <leader>qt <Action>(QuickTypeDefinition)
nmap <leader>qe <Action>(ShowErrorDescription)
nmap <leader>qb <Action>(ShowBookmarks)
" REFACTORING
nmap <leader>rm <Action>(Refactorings.QuickListPopupAction)
nmap <leader>rn <Action>(RefactoringMenu)
nmap <leader>rr <Action>(RenameElement)
" PROJECT NAVIGATION
nmap <leader>fe <Action>(SearchEverywhere)
nmap <leader>fa <Action>(GotoAction)
nmap <leader>ff <Action>(GotoFile)
nmap <leader>fc <Action>(GotoClass)
nmap <leader>fs <Action>(GotoSymbol)
nmap <leader>fr <Action>(RecentFiles)
nmap <leader>fR <Action>(RecentChangedFiles)
nmap <leader>fl <Action>(RecentLocations)
" TOOL WINDOWS
nmap <leader>wh <Action>(HideAllWindows)
nmap <leader>wp <Action>(SelectInProjectView)<Action>(LocateInSolutionView)
nmap <leader>wd <Action>(ActivateDebugToolWindow)
nmap <leader>wr <Action>(ActivateRunToolWindow)
nmap <leader>wt <Action>(ActivateTODOToolWindow)
nmap <leader>wf <Action>(ActivateFindToolWindow)
nmap <leader>wy <Action>(ActivatePythonConsoleToolWindow)
nmap <leader>wl <Action>(JumpToLastWindow)
nmap <leader>m <Action>(QuickJavaDoc)
" DEBUGGING
nmap <leader>ds <Action>(Stop)
nmap <leader>dd <Action>(Debug)
nmap <leader>dr <Action>(Run)
nmap <leader>dcd <Action>(ChooseDebugConfiguration)
nmap <leader>dcr <Action>(ChooseRunConfiguration)
nmap <leader>de <Action>(QuickEvaluateExpression)
nmap <leader>dE <Action>(EvaluateExpression)
nmap <leader>db <Action>(ToggleLineBreakpoint)
nmap <leader>dt <Action>(ToggleBreakpointEnabled)
nmap <leader>dB <Action>(ViewBreakpoints)
nmap <leader>dx <Action>(ShowExecutionPoint)
nmap <leader>di <Action>(Debugger.EvaluateInConsole)<Action>(NavigateToImmediateWindow)