-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.ideavimrc
47 lines (34 loc) · 1.05 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
""" Map leader to space ---------------------
let mapleader=" "
""" Plugins --------------------------------
set surround
set multiple-cursors
set commentary
""" Common settings -------------------------
set showmode
set scrolloff=2 " 2 lines above/below cursor
set su
set incsearch
set ignorecase
set clipboard+=unnamed " Copy to system clipboard as well
""" Idea specific settings ------------------
set ideajoin
set ideastatusicon=gray
set idearefactormode=keep
""" Mappings --------------------------------
:imap jj <ESC>
" Tabs
nnoremap gT :action PreviousTab<cr>
nnoremap gt :action NextTab<cr>
nmap <S-Space> <Action>(GotoNextError)
" Refactorings
nmap <leader>r <Action>(RenameElement)
" File Tree
nmap <leader>f <Action>(ActivateProjectToolWindow)
nmap <leader>s <Action>(SelectInProjectView)
nmap <leader>z <Action>(ToggleDistractionFreeMode)
nmap <leader>a <Action>(Annotate)
nmap <leader>o <Action>(FileStructurePopup)
nmap <leader>h <Action>(Vcs.ShowTabbedFileHistory)
nmap <leader>m :action ToggleBookmark<cr>
nmap <leader>b :action ShowBookmarks<cr>