-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
127 lines (109 loc) · 4.44 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
" Plugins
set commentary
set surround
set ReplaceWithRegister
set highlightedyank
set ignorecase
set showmode
set hlsearch
set clipboard=unnamedplus
set number relativenumber
set wildmode=longest:full
set autoread
let mapleader = ' '
" NAVIGATION
nnoremap <leader>[ :action Back<CR>
nnoremap <C-o> :action Back<CR>
nnoremap g<C-o> <C-o>
nnoremap <leader>] :action Forward<CR>
nnoremap <C-i> :action Forward<CR>
nnoremap g<C-i> <C-i>
nnoremap <silent> <leader>; :
vnoremap <silent> <leader>; :
nnoremap <leader>b[ :action PreviousTab<CR>
nnoremap <leader>b] :action NextTab<CR>
nnoremap <silent> <leader>bd :action CloseContent<CR>
nnoremap <silent> <C-w>q :action CloseContent<CR>
nnoremap <silent> <leader>bm :action EditorTabsPopupMenu<CR>
nnoremap <leader>d[ :action GotoPreviousError<CR>
nnoremap <leader>d] :action GotoNextError<CR>
nnoremap [d :action GotoPreviousError<CR>
nnoremap ]d :action GotoNextError<CR>
nnoremap <silent> <leader>nt :action ActivateTerminalToolWindow<CR>
nnoremap <silent> <leader>np :action SelectInProjectView<CR>
nnoremap <silent> <leader>nb :action RecentFiles<CR>
nnoremap <silent> <leader>nc :action ActivatenpmToolWindow<CR>
nnoremap <silent> <leader>nu :action ActivateRunToolWindow<CR>
nnoremap <silent> <leader>nd :action JumpToLastWindow<CR>
nnoremap <silent> <leader>nr :action ReplaceInPath<CR>
vnoremap <silent> <leader>nr :action ReplaceInPath<CR>
nnoremap <silent> <leader>ng :action FindInPath<CR>
vnoremap <silent> <leader>ng :action FindInPath<CR>
nnoremap <silent> <leader>qa :action HideAllWindows<CR>
nnoremap <silent> <leader>qt :action HideSideWindows<CR>
nnoremap <silent> <leader>qs :action HideActiveToolWindow<CR>
" GOTO
nnoremap <silent> <leader>gd :action GotoDeclaration<CR>
nnoremap <silent> <leader>gt :action GotoTypeDeclaration<CR>
nnoremap <silent> <leader>gi :action GotoImplementation<CR>
nnoremap <silent> <leader>gr :action FindUsages<CR>
noremap <silent> <leader>gs :action GotoSymbol<CR>
nnoremap <silent> <leader>gu :action GotoTest<CR>
nnoremap <silent> <leader>c :action GotoAction<CR>
nnoremap <silent> <leader>f :action GotoFile<CR>
nnoremap <silent> <leader>e :action SearchEverywhere<CR>
nnoremap <silent> <leader>r :action RunAnything<CR>
" PREVIEW
nmap <silent> <leader>k :action ShowErrorDescription<CR>
nmap <silent> <leader>pd :action QuickImplementations<CR>
nmap <silent> <leader>pr :action ShowUsages<CR>
nnoremap <silent> <leader>pb :action RecentLocations<CR>
nnoremap <silent> <leader>ps :action FileStructurePopup<CR>
nnoremap <silent> <leader>pe :action ShowErrorDescription<CR>
" FORMAT FIXES REFACTORINGS
nnoremap <silent> <leader>m :action EditorPopupMenu<CR>
vnoremap <silent> <leader>m :action EditorPopupMenu<CR>
nmap <silent> <leader>ar :action RenameElement<CR>
nnoremap <silent> <leader>am :action ShowIntentionActions<CR>
vnoremap <silent> <leader>am :action ShowIntentionActions<CR>
nmap <silent> <leader>af :action ReformatCode<CR>
vmap <silent> <leader>af :action ReformatCode<CR>
" nmap <silent> <leader>al :action
nmap <silent> <leader>rr :action RenameElement<CR>
nmap <silent> <leader>rm :action Move<CR>
nmap <silent> <leader>rv :action IntroduceVariable<CR>
nmap <silent> <leader>ri :action Inline<CR>
nmap <silent> <leader>rf :action ExtractMethod<CR>
nmap <silent> <leader>rp :action IntroduceParameter<CR>
" FILES
nmap <silent> <leader>w :action SaveDocument<CR>
nmap <silent> <leader>W :action SaveAll<CR>
" TESTS
nmap <silent> <leader>tt :action RunClass<CR>
nmap <silent> <leader>td :action DebugClass<CR>
nmap <silent> <leader>tr :action RerunTest<CR>
" GIT
nmap <silent> <leader>vs :action Git.Branches<CR>
nmap <silent> <leader>vS :action Git.CreateNewBranch<CR>
nmap <silent> <leader>vc :action CheckinProject<CR>
nmap <silent> <leader>vp :action Vcs.Push<CR>
nmap <silent> <leader>vP :action Vcs.Force.Push<CR>
nmap <silent> <leader>vb :action Annotate<CR>
nmap <silent> <leader>vl :action Git.Pull<CR>
nmap <silent> <leader>vf :action Git.Fetch<CR>
nmap <silent> <leader>vv :action ActivateVersionControlToolWindow<CR>
" HELP
nmap <silent> <leader>h :actionlist<space>
" ETC
nnoremap <leader>/ :nohlsearch<CR>
nnoremap / :action Find<CR>
vnoremap / :action Find<CR>
nnoremap g/ /
nnoremap <leader>o o<Esc>
nnoremap <leader>O O<Esc>
" DEBUG
nnoremap <silent> <leader>db :action ToggleLineBreakpoint<CR>
nnoremap <silent> <leader>do :action StepOver<CR>
nnoremap <silent> <leader>di :action StepInto<CR>
nnoremap <silent> <leader>ds :action SmartStepInto<CR>
nnoremap <silent> <leader>du :action StepOut<CR>