-
Notifications
You must be signed in to change notification settings - Fork 1
/
.ideavimrc
76 lines (61 loc) · 1.92 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
"set relativenumber
" Ignore case when searching
set ignorecase
" When searching try to be smart about cases
set smartcase
" Highlight search results
set hlsearch
" Makes search act like search in modern browsers
set incsearch
" Show matching brackets when text indicator is over them
set showmatch
let mapleader=" "
noremap S :w
" Disable highlight when <leader><cr> is pressed
map <silent> <leader><cr> :noh<cr>
" Replace keymap, quick click
noremap 0 ^
noremap ^ 0
noremap zv f{V%
map S :w<CR>
map Q :q<CR>
map zy "+y
map zp "+p
map <A-v> <C-v>
noremap <C-O> :action Back<CR>
noremap <C-I> :action Forward<CR>
nnoremap gd :action GotoDeclaration<CR>
nnoremap gs :action GotoSuperMethod<CR>
nnoremap gi :action GotoImplementation<CR>
nnoremap gb :action JumpToLastChange<CR>
noremap <leader>e :action SearchEverywhere<CR>
noremap <leader>g :action FindInPath<CR>
noremap <leader>s :action FileStructurePopup<CR>
noremap <leader>a :action GotoAction<CR>
noremap <leader>` :action SelectInProjectView<CR>
noremap <leader>; :action emacsIDEAs.AceJumpWord<CR>
noremap <leader>d :action ChooseDebugConfiguration<CR>
noremap <leader>h :action HideAllWindows<CR>
noremap <leader>r :action Refactorings.QuickListPopupAction<CR>
noremap [[ :action MethodUp<CR>
noremap ]] :action MethodDown<CR>
noremap <leader>j :action GotoNextError<CR>
noremap <leader>k :action GotoPreviousError<CR>
noremap gy :action CopyReference<CR>
nnoremap R :action RenameElement<CR>
" Window
map <leader>wl :set splitright<CR>:vsplit<CR>
map <leader>wh :set nosplitright<CR>:vsplit<CR>
map <leader>wj :set nosplitbelow<CR>:split<CR>
map <leader>wk :set splitbelow<CR>:split<CR>
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
" Tab
nnoremap <leader>to :tabonly<cr>
nnoremap <silent> ]t :tabnext<CR>
nnoremap <silent> [t :tabprevious<CR>
nnoremap <silent> ]T :tablast<CR>
nnoremap <silent> [T :tabfirst<CR>
set keep-english-in-normal-and-restore-in-insert