-
Notifications
You must be signed in to change notification settings - Fork 2
/
ideavimrc
56 lines (42 loc) · 1.25 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
""" Map leader to space ---------------------
let mapleader=""
""" Plugins --------------------------------
set surround
set multiple-cursors
set commentary
set argtextobj
set easymotion
set textobj-entire
set ReplaceWithRegister
set NERDTree
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
set scrolloff=5
" Do incremental searching.
set incsearch
set clipboard=unnamed,unnamedplus
" Don't use Ex mode, use Q for formatting.
map Q gq
" Navigate between idea tabs: <Ctrl+Tab>
map <leader>f <Plug>(easymotion-s)
map <leader>e <Plug>(easymotion-f)
" rename element
map <leader>r <Action>(RenameElement)
" display error/warring popup
map ! <Action>(ShowErrorDescription)
" file structure(to find methods inside of the file)
map ,f <Action>(FileStructurePopup)
" find references in the files
map ,r <Action>(FindInPath)
" NERDTree Open/Close
map <leader>t :NERDTreeToggle<CR>
map <leader>T :NERDTreeFind<CR>
map K <Action>(QuickJavaDoc)
map ,c :action GotoClass<CR>
map ,t :action GotoFile<CR>
" go to implementation
map gi <Action>(GotoImplementation)
" find usage global or local
map ,ug <Action>(FindUsages)
map ,ul <Action>(FindUsagesInFile)
map ,b <Action>(Switcher)