-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
44 lines (39 loc) · 1.5 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
" custom map-key for intellij
" author: stanhe
let mapleader=","
" change tab,replace by C+M+h/l in my studio settings
noremap <leader>l gt
noremap <leader>h gT
noremap <leader>b :action Back<CR>
noremap <leader>f :action Forward<CR>
noremap <leader>v :action VimVisualToggleBlockMode<CR>
noremap <leader>af :action FileStructurePopup<CR>
noremap <leader>sf :action ShowFilePath<CR>
" actions gc and gf more convenient,ga replace by C+M+f
noremap <A-f> :action GotoFile<CR>
noremap <leader>xf :action GotoFile<CR>
noremap <A-c> :action GotoClass<CR>
noremap <leader>gc :action GotoClass<CR>
noremap <leader>gf :action GotoFile<CR>
noremap <leader>ga :action GotoAction<CR>
noremap <leader>gd :action GotoDeclaration<CR>
noremap <leader>gi :action GotoImplementation<CR>
noremap <leader>gs :action GotoSuperMethod<CR>
noremap <leader>gt :action GotoTest<CR>
" windows
noremap <leader>xr :action Run <CR>
noremap <leader>sv :action VimWindowSplitVertical <CR>
noremap <leader>sh :action VimWindowSplitHorizontal <CR>
noremap <leader>x0 :action VimWindowClose <CR>
noremap <leader>xq :action VimWindowClose <CR>
noremap <leader>xl :action VimWindowRight <CR>
noremap <leader>xh :action VimWindowLeft <CR>
noremap <leader>xj :action VimWindowDown <CR>
noremap <leader>xk :action VimWindowUp <CR>
noremap <leader>x1 :action VimWindowOnly <CR>
" search
set incsearch
set ignorecase smartcase
set hls
nnoremap <Leader>sc :nohlsearch<CR>
set clipboard+=unnamed