-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
43 lines (29 loc) · 1.27 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
source ~/.vimrc
" To search available actions in Webstorm/IntelliJ, type :actionlist yourquery
"
" TODO: Make <leader>u open up the last visited file
" Figure out how to close popup windows with <C-[>
nnoremap gd :action GotoDeclaration<CR>
nnoremap gr :action FindUsages<CR>
nnoremap <leader>rn :action RenameElement<CR>
nnoremap <leader>pp :action ReformatWithPrettierAction<CR>
vnoremap <leader>pp :action ReformatWithPrettierAction<CR>
nnoremap <leader>cc :action CommentByLineComment<CR>
vnoremap <leader>cc :action CommentByLineComment<CR>
nnoremap <leader>do :action ShowIntentionActions<CR>
nnoremap <leader>o :action GotoFile<CR>
vnoremap <leader>o :action GotoFile<CR>
nnoremap <leader>i :action Switcher<CR>
vnoremap <leader>i :action Switcher<CR>
" nnoremap <leader>u :action Switcher<CR>
nnoremap <leader>u :action Back<CR>
" Search all files in project
nnoremap <leader>F :action FindInPath<CR>
vnoremap <leader>F :action FindInPath<CR>
nnoremap <leader>sv :source ~/.ideavimrc<CR>
nnoremap <leader>f :action SelectInProjectView<CR>
nnoremap <leader>e :action ActivateProjectToolWindow<CR>
nnoremap <leader>gc :action Git.ResolveConflicts<CR>
nnoremap ]g :action GotoNextError<CR>
nnoremap [g :action GotoPreviousError<CR>
nnoremap <C-Z> :action ActivateTerminalToolWindow<CR>