-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
74 lines (66 loc) · 1.7 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
" Options
set clipboard=unnamed
set nowrapscan
set hlsearch
set incsearch
set ignorecase
set smartcase
set ideajoin
set surround
"
" Normal-mode mappings
"
nnoremap gb :action Annotate<CR>
nnoremap gc :action CommentByLineComment<CR>
nnoremap gd :action ActivateVersionControlToolWindow<CR>
nnoremap ge :action Tool_External Tools_MacVim<CR>
nnoremap gh ^
nnoremap gi :action ShowIntentionActions<CR>
nnoremap gk :action FindInPath<CR>
nnoremap gl $
nnoremap gm :action ToggleBookmark<CR>
nnoremap gn :<C-u>nohlsearch<CR>
nnoremap gM :action ShowBookmarks<CR>
nnoremap goa :action GotoAction<CR>
nnoremap goc :action GotoClass<CR>
nnoremap goe :action SearchEverywhere<CR>
nnoremap gof :action GotoFile<CR>
nnoremap gos :action GotoSymbol<CR>
nnoremap gr :action RenameElement<CR>
nnoremap gs :action FileStructurePopup<CR>
nnoremap gt :action Github.Open.In.Browser<CR>
nnoremap gu :action FindUsages<CR>
nnoremap gy :action CopyAbsolutePath<CR>
nnoremap gx :action ToggleLineBreakpoint<CR>
nnoremap g<CR> mzA;<ESC>`z
nnoremap g<Space> :action Run<CR>
nnoremap g, :<C-u>edit ~/.ideavimrc<CR>
nnoremap g. :<C-u>source ~/.ideavimrc<CR>
nnoremap <CR>d :<C-u>close<CR>
nnoremap <CR>v :action SplitVertically<CR>
nnoremap <C-l> :action NextSplitter<CR>
nnoremap Q :action EditorToggleShowLineNumbers<CR>
nnoremap W :action EditorToggleUseSoftWraps<CR>
"
" Insert-mode mappings
"
inoremap <C-a> <C-o>^
inoremap <C-e> <C-o>A
inoremap <C-b> <C-o>O
"
" Visual-mode mappings
"
vnoremap v $h
vnoremap gc :action CommentByLineComment<CR>
"
" Others
"
" Jump to the corresponding parehthesis
nmap <Tab> %
vmap <Tab> %
vmap m %
" Search
nnoremap * mzyiw?<C-r>0<CR>/<CR>`z
vnoremap * <ESC>mzgvy?<C-r>0<CR>/<CR>`z
nnoremap n /<CR>
nnoremap <S-n> ?<CR>