-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathideavimrc
61 lines (46 loc) · 1.35 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
59
60
61
""" Editing and Reloading the Config
set clipboard+=unnamed
set clipboard+=ideaput
set NERDTree
let mapleader=","
""" List of available actions
""" :actionlist
""" Load config
nnoremap <leader>cv :e ~/.ideavimrc<CR>
nnoremap <leader>sv :action IdeaVim.ReloadVimRc.reload<CR>
""" Terminal
nnoremap <leader>m :action ActivateTerminalToolWindow<CR>
""" Navigation
sethandler <c-j> a:vim
sethandler <c-k> a:vim
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <TAB> :action NextTab<CR>
nnoremap <s-TAB> :action PreviousTab<CR>
vnoremap < <gv
vnoremap > >gv
nnoremap <leader>e :action GotoNextError<CR>
nnoremap <leader>E :action GotoPreviousError<CR>
set incsearch
set commentary
set visualbell
set noerrorbells
""" Git
nnoremap <leader>gn :action VcsShowNextChangeMarker<CR>
nnoremap <leader>gp :action VcsShowPrevChangeMarker<CR>
nnoremap <leader>gd :action Compare.LastVersion<CR>
nnoremap <Leader>gr :action Vcs.RollbackChangedLines<CR>
nnoremap <leader>gB :action Annotate<CR>
""" Ace jump
" Press `s` to activate AceJump
map s :action AceAction<CR>
" Press `S` to activate Target Mode
map S :action AceTargetAction<CR>
""" Find
nnoremap <leader>a :action FindInPath<CR>
nnoremap <leader>W :action FindUsages<CR>
""" NERDTree
nnoremap <c-e> :NERDTreeToggle<CR>
nnoremap <leader>gb :action Github.Open.In.Browser<CR>