-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathideavimrc
More file actions
93 lines (80 loc) · 2.36 KB
/
Copy pathideavimrc
File metadata and controls
93 lines (80 loc) · 2.36 KB
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
""" Map leader to space ---------------------
let mapleader=" "
""" Plugins --------------------------------
set surround
set which-key
set dial
set commentary
set ReplaceWithRegister
set highlightedyank
set anyobject
""" Plugin settings -------------------------
let g:argtextobj_pairs="[:],(:),<:>"
let g:highlightedyank_highlight_color = "rgba(170, 102, 221, 255)" "#AA66DD
let g:highlightedyank_highlight_foreground_color = "rgba(255, 255, 255, 255)" "#FFFFFF
let g:WhichKey_ShowVimActions = "true"
""" Common settings -------------------------
set scrolloff=5
set incsearch
set nu
set timeoutlen=5000
""" Idea specific settings ------------------
set ideajoin
set ideastatusicon=gray
set idearefactormode=keep
set ideavimsupport=
set clipboard^=unnamed,unnamedplus
set lookupkeys-=<C-J>
set keep-english-in-normal
set nokeep-english-in-normal-and-restore-in-insert
""" Mappings --------------------------------
"Move in completion menu
imap <C-j> <C-n>
imap <C-k> <C-p>
map <leader><S-r> <Action>(IdeaVim.ReloadVimRc.reload)
map <leader>d <Action>(Debug)
map <leader>c <Action>(Stop)
map <leader>z <Action>(ToggleDistractionFreeMode)
map <leader>s <Action>(SurroundWith)
map <leader><S-s> <Action>(Unwrap)
map <leader>b <Action>(ToggleLineBreakpoint)
map <leader>o <Action>(FileStructurePopup)
map <leader>= <Action>(ReformatCode)
map <leader>F <Action>(ShowReformatFileDialog)
map <leader>i <Action>(ToggleInlayHintsGloballyAction)
map K <Action>(ShowHoverInfo)
map grn <Action>(RenameElement)
map gd <Action>(GotoDeclaration)
map gi <Action>(GotoImplementation)
map gs <Action>(GotoSuperMethod)
map gt <Action>(ExpressionTypeInfo)
map vw <action>(EditorSelectWord)
map vs <action>(EditorUnSelectWord)
nnoremap <C-a> :DialIncrement<cr>
nnoremap <C-x> :DialDecrement<cr>
""" Handlers --------------------------------
sethandler <S-CR> a:vim
sethandler <C-Left> a:vim
sethandler <C-Right> a:vim
sethandler <C-A> a:vim
sethandler <C-C> a:ide
sethandler <C-D> a:vim
sethandler <C-E> a:vim
sethandler <C-F> a:ide
sethandler <C-G> a:vim
sethandler <C-H> a:vim
sethandler <C-I> a:vim
sethandler <C-J> a:vim
sethandler <C-K> a:vim
sethandler <C-L> a:vim
sethandler <C-O> a:vim
sethandler <C-P> a:vim
sethandler <C-R> a:vim
sethandler <C-S> a:vim
sethandler <C-U> a:vim
sethandler <C-V> a:vim
sethandler <C-W> a:ide
sethandler <C-X> a:vim
sethandler <C-Y> a:vim
sethandler <C-[> a:vim
sethandler <C-]> a:vim