-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
58 lines (44 loc) · 1.21 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
set surround
set hlsearch
set incsearch
set ignorecase
set clipboard=unnamed,unnamedplus
set clipboard+=ideaput
nmap <A-a> ggVG
let mapleader = " "
" buffer
nmap <leader>bk <Action>(CloseContent)
nmap <leader>bo <Action>(CloseAllEditorsButActive)
nmap <Tab> <Action>(NextTab)
nmap <S-Tab> <Action>(PreviousTab)
nmap <leader>ra <Action>(RenameElement)
nmap <leader>ca <Action>(ActivateProblemsViewToolWindow)
nmap <leader>ff <Action>(GotoFile)
nmap <leader>fw <Action>(SearchEverywhere)
nmap <leader>fb <Action>(Switcher)
nmap <leader>fm <Action>(ReformatCode)
" terminal
nmap <A-h> <Action>(ActivateTerminalToolWindow)
" zen mode
nmap <leader>zm <Action>(ToggleZenMode)
" git
nmap <leader>ph <Action>(VcsShowCurrentChangeMarker)
nmap <leader>gb <Action>(Annotate)
nmap <leader>rh <Action>(Vcs.RollbackChangedLines)
" window
nmap <leader>wv <Action>(MoveTabRight)
nmap <C-l> <C-W>l
nmap <C-h> <C-W>h
nmap <C-j> <C-W>j
nmap <C-k> <C-W>k
map s <Action>(AceAction)
" adhoc
nmap ; :
map <leader>/ <Action>(CommentByLineComment)
nnoremap Y y$
nnoremap <Esc> :noh<cr>
" Other useful mappings
" <S-k>: hover doc
" <C-tab>: hold control using n/p to switch tabs
" <C-o/i>: navigate to old/new position
" <C-w>l/j/h/k: move between windows