-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
98 lines (80 loc) · 1.71 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
set incsearch
set surround
set hlsearch
set rnu
set number
let mapleader = " "
set clipboard+=ideaput
" Number keys
nnoremap + 1
vnoremap + 1
nnoremap ě 2
vnoremap ě 2
nnoremap š 3
vnoremap š 3
nnoremap č 4
vnoremap č 4
nnoremap ř 5
vnoremap ř 5
nnoremap ž 6
vnoremap ž 6
nnoremap ý 7
vnoremap ý 7
nnoremap á 8
vnoremap á 8
nnoremap í 9
vnoremap í 9
nnoremap é 0
vnoremap é 0
" Moving around
nnoremap gh ^
vnoremap gh ^
nnoremap gl $
vnoremap gl $
" Moving between splits
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
" Moving between tabs
nnoremap J gT
nnoremap K gt
" Cursor position
nnoremap <leader>H H
nnoremap <leader>L L
nnoremap <leader>M M
" Search
nnoremap - /
" Cancel search highlighting with escape
nnoremap <ESC> :noh<CR>
" ftFT next match
nnoremap ů ;
" Open docs
nnoremap <leader>k K
" Edit actions
"" join lines
nnoremap <leader>j J
"" split line
nnoremap <leader>s i<CR><ESC>
" IDE actions
"" Editing
inoremap <C-Return> <C-o>:action EditorCompleteStatement<CR>
noremap <C-t> :action Refactorings.QuickListPopupAction<CR>
noremap <C-g> :action Generate<CR>
noremap <leader>f :action ReformatCode<CR>
"" Navigation
nnoremap <C-p> :action GotoFile<CR>
nnoremap <C-n> :action GotoClass<CR>
nnoremap <leader>u :action FindUsages<CR>
"" Running and stuff
noremap <F5> :action Debug<CR>
noremap <C-F5> :action Run<CR>
noremap <S-F5> :action Build<CR>
"" Tool windows
nnoremap <leader>t :action ActivateProjectToolWindow<CR>
nnoremap <leader>o :action ActivateTODOToolWindow<CR>
nnoremap <leader>h :action HideAllWindows<CR>
"" VCS
nnoremap <leader>c :action ChangesView.Commit<CR>
nnoremap <leader>p :action Vcs.Push<CR>
nnoremap <leader>P :action Git.Pull<CR>