-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
75 lines (63 loc) · 2.08 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
" see https://github.com/einverne/dotfiles/blob/master/idea/.ideavimrc for ideas
set tabstop=4
set shiftwidth=4
set softtabstop=4
set hlsearch " highlight search
set incsearch " incremental search
set ignorecase
set smartcase
set wrapscan
set ideajoin
set clipboard+=unnamed
set ideamarks
let mapleader = "\<Space>"
let g:mapleader = "\<Space>"
" config reloader
noremap <leader>l <ESC>:source ~/.ideavimrc<cr>
set history=1000
set nu
" set rnu
" Note: use 'IdeaVim: track action Ids' to find names of those actions
" or :actionlist <search-term>
" General
nnoremap ,r :action RenameElement<CR>
nnoremap <leader>f :<C-u>action FindInPath<CR>
vnoremap <leader>f :<C-u>action FindInPath<CR>
nnoremap <leader>b :<C-u>action RecentFiles<CR>
nnoremap <leader>d :<C-u>action SearchEverywhere<CR>
"vnoremap , :<C-u>action EditorSelectWord<CR>
"vnoremap . :<C-u>action EditorUnSelectWord<CR>
nnoremap <leader>c :<C-u>action CommentByLineComment<CR>
vnoremap <leader>c :<C-u>action CommentByLineComment<CR>
" select the project view. Note: to focus editor again, just press esc
nnoremap <leader>r :<C-u>action SelectInProjectView<CR>
nnoremap sl :<C-u>action NextSplitter<CR>
nnoremap sh :<C-u>action PrevSplitter<CR>
nnoremap sc :<C-u>action Unsplit<CR>
nnoremap ss :<C-u>action SplitHorizontally<CR>
nnoremap sv :<C-u>action SplitVertically<CR>
" navigation back and forth
"noremap <C-i> :<C-u>action Forward<CR>
"noremap <C-o> :<C-u>action Back<CR>
" Redo
nnoremap U <C-r>
" go to somewhere (g in normal mode for goto somewhere)
nnoremap ga :<C-u>action GotoAction<CR>
nnoremap gc :<C-u>action GotoClass<CR>
nnoremap gd :<C-u>action GotoDeclaration<CR>
nnoremap gS :<C-u>action GotoSuperMethod<CR>
nnoremap gm :<C-u>action GotoImplementation<CR>
nnoremap gf :<C-u>action GotoFile<CR>
nnoremap gs :<C-u>action GotoSymbol<CR>
nnoremap gl :<C-u>action JumpToLastChange<CR>
nnoremap gr :<C-u>action ShowUsages<CR>
nnoremap gt :<C-u>action GotoTest<CR>
nnoremap gj :<C-u>action EditorCodeBlockStart<CR>
nnoremap gk :<C-u>action EditorCodeBlockEnd<CR>
" marks
nmap ma mA
nmap mb mB
nmap mc mC
nmap md mD
nmap me mE
nmap "'a" "'A"