-
Notifications
You must be signed in to change notification settings - Fork 0
/
ideavimrc
executable file
·126 lines (95 loc) · 2.88 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
"you can set SPACE as leader key"
nnoremap <SPACE> <Nop>
let mapleader=","
set hlsearch
set incsearch
set ignorecase
set smartcase
set showmode
set number
set scrolloff=3
set history=100000
"Copy to system clipboard as well"
set clipboard+=unnamed
"Multiple cursors support"
set multiple-cursors
" clear the highlighted search result"
nnoremap <Leader>hc :nohlsearch<CR>
nnoremap <Leader>fs :w<CR>
" Quit normal mode"
nnoremap <Leader>q :q<CR>
nnoremap <Leader>Q :qa!<CR>
" Move half page faster"
nnoremap <Leader>d <C-d>
nnoremap <Leader>u <C-u>
" Insert mode shortcut"
inoremap <C-h> <Left>
inoremap <C-j> <Down>
inoremap <C-k> <Up>
inoremap <C-l> <Right>
inoremap <C-a> <Home>
inoremap <C-e> <End>
inoremap <C-d> <Delete>
" Quit insert mode"
inoremap jj <Esc>
" Quit visual mode"
vnoremap v <Esc>
" Move to the start of line"
nnoremap H ^
" Move to the end of line"
nnoremap L $
" Redo"
nnoremap U <C-r>
" Yank to the end of line"
nnoremap Y y$
" Window operation"
nnoremap <Leader>ww <C-W>w
nnoremap <Leader>wd <C-W>c
nnoremap <Leader>wj <C-W>j
nnoremap <Leader>wk <C-W>k
nnoremap <Leader>wh <C-W>h
nnoremap <Leader>wl <C-W>l
nnoremap <Leader>ws <C-W>s
nnoremap <Leader>w- <C-W>s
nnoremap <Leader>wv <C-W>v
nnoremap <Leader>w| <C-W>v
" Tab operation"
"debug config"
nnoremap <Leader>db :action ToggleLineBreakpoint<CR>
nnoremap <Leader>dr :action ViewBreakpoints<CR>
"bookmark config"
nnoremap <Leader>bt :action ToggleBookmark<CR>
nnoremap <Leader>bn :action GotoNextBookmark<CR>
nnoremap <Leader>bp :action GotoPreviousBookmark<CR>
nnoremap <Leader>gg :action GotoDeclaration<CR>
nnoremap <Leader>gm :action GotoImplementation<CR>
nnoremap <Leader>gs :action GotoSuperMethod<CR>
nnoremap <Leader>gt :action GotoTest<CR>
nnoremap <Leader>gb :action Back<CR>
nnoremap <Leader>gf :action Forward<CR>
"action about search"
nnoremap <Leader>se :action SearchEverywhere<CR>
nnoremap <Leader>sa :action GotoAction<CR>
nnoremap <Leader>sc :action GotoClass<CR>
nnoremap <Leader>ss :action GotoSymbol<CR>
nnoremap <Leader>sp :action ShowFilePath<CR>
nnoremap <Leader>su :action FindUsages<CR>
"nnoremap <Leader>su :action ShowUsages<CR>"
"action about files"
nnoremap <Leader>ff :action GotoFile<CR>
nnoremap <Leader>fr :action RecentFiles<CR>
nnoremap <Leader>fs :action FileStructurePopup<CR>
"action about code"
nnoremap <Leader>cg :action Generate<CR>
nnoremap <Leader>cv :action ChangeView<CR>
nnoremap <Leader>cd :action ChooseDebugConfiguration<CR>
nnoremap <Leader>ic :action InspectCode<CR>
nnoremap <Leader>mv :action ActivateMavenProjectsToolWindow<CR>
nnoremap <Leader>oi :action OptimizeImports<CR>
nnoremap <Leader>pm :action ShowPopupMenu<CR>
nnoremap <Leader>rc :action ChooseRunConfiguration<CR>
nnoremap <Leader>re :action RenameElement<CR>
nnoremap <Leader>rf :action RenameFile<CR>
nnoremap <Leader>tc :action CloseActiveTab<CR>
nnoremap <Leader>tl :action ActivateTerminalToolWindow<CR>
set ideajoin