-
Notifications
You must be signed in to change notification settings - Fork 0
/
ideavimrc
51 lines (44 loc) · 1.66 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
source ~/.dotfiles/vim/abbrev.vim
source ~/.dotfiles/vim/autocmds.vim
source ~/.dotfiles/vim/mappings-safe.vim
source ~/.dotfiles/vim/settings.vim
set visualbell
set noerrorbells
" mappings just for ideavim
set incsearch
set surround
" join lines - strings and comments handle sensibly
set ideajoin
" to workaround being unable to save settings
" from https://youtrack.jetbrains.com/issue/VIM-1851
set noideamarks
" use kj to escape insert mode
:inoremap kj <Esc>
" others, from http://stackoverflow.com/a/33988035/3189
map <leader>a :action Annotate<CR>
map <leader>b :action Back<CR>
" map <leader>c :action $Copy<CR>
" map <leader>d :action EditorDuplicate<CR>
map <leader>e :action RecentFiles<CR>
map <leader>f :action Find<CR>
map <leader>g :action GotoDeclaration<cr>
map <leader>h :action HideAllWindows<CR>
" map <leader>i :action ImplementMethods<CR>
" map <leader>m :action EditorScrollToCenter<CR>
" map <leader>n :action FileChooser.NewFolder<CR>
" map <leader>o :action MethodHierarchy.OverrideMethodAction<CR>
" map <leader>p :action ParameterInfo<CR>
" map <leader>q :action GuiDesigner.QuickJavadoc<CR>
map <leader>r :action Refactorings.QuickListPopupAction<CR>
" map <leader>s :action SaveAll<CR>
" map <leader>t :action Vcs.UpdateProject<CR>
map <leader>u :action PublishGroup.Upload<CR>
" map <leader>v :action $Paste<CR>
" map <leader>w :action EditorSelectWord<CR>
" map <leader>x :action $Cut<CR>
" map <leader>y :action EditorDeleteLine<CR>
" map <leader>[ :action EditorCodeBlockStart<CR>
" map <leader>] :action EditorCodeBlockEnd<CR>
" do :Black to run black on the file
command Black action Tool_External Tools_Black
command! -nargs=* Usages action FindUsages