-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
58 lines (46 loc) · 1.31 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
inoremap jj <Esc>
inoremap jJ <Esc>
""" Map leader to space ---------------------
let mapleader=" "
set colorcolumn=120
nnoremap <Leader>w <C-w>
""" Plugins --------------------------------
set surround
set multiple-cursors
set commentary
set argtextobj
set easymotion
set NERDTree
set textobj-entire
set ReplaceWithRegister
""" Plugin settings -------------------------
let g:argtextobj_pairs="[:],(:),<:>"
""" Common settings -------------------------
set showmode
set so=5
set incsearch
set nu
""" Idea specific settings ------------------
set ideajoin
set ideastatusicon=gray
set idearefactormode=keep
""" Mappings --------------------------------
nmap s <Plug>(easymotion-s2)
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <leader>d :NERDTree<CR>
nnoremap <leader>t :NERDTreeToggle<CR>
nnoremap <leader>f :NERDTreeFind<CR>
let g:NERDTreeMapActivateNode='l'
let g:NERDTreeMapCloseDir='h'
"""map <leader>db <Action>(Debug)
"""map <leader>aj <Action>(GotoNextError)
map <leader>rn <Action>(RenameElement)
map <leader>c <Action>(Stop)
map <leader>z <Action>(ToggleDistractionFreeMode)
map <leader>f <Action>(ReformatCode)
map gr <Action>(FindUsages)
map <leader>s <Action>(SearchEverywhere)
"" Alt+Enter shortcut in the editor
map <leader>a <Action>(ShowIntentionActions)
command Ag action FindInPath
command ag action FindInPath