-
Notifications
You must be signed in to change notification settings - Fork 0
/
ideavimrc
45 lines (38 loc) · 1.12 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
""""""""""""""""""""""
" <Leader> key binding
""""""""""""""""""""""
let mapleader=","
""""""""""""""""""""""
" show current command
""""""""""""""""""""""
set showcmd
""""""""""""""""
" search options
""""""""""""""""
set hlsearch
set ignorecase
set incsearch
""""""""""""""""""""""""""""""""""
" copy/paste from system clipboard
""""""""""""""""""""""""""""""""""
set clipboard+=unnamedplus
nnoremap <Leader>p "+p
nnoremap <Leader>c "+yy
vnoremap <Leader>c "+y
""""""""""""""""""""
" break line
""""""""""""""""""""
nnoremap <NL> i<CR><ESC>
" ============================================================================
" IDE actions
" ============================================================================
nnoremap <Space>d :action CloseContent<CR>
nnoremap <Space>e :action RecentFiles<CR>
nnoremap <Space>j :action JumpToLastWindow<CR>
nnoremap <Space>k :action FileStructurePopup<CR>
nnoremap <Space>h :action QuickJavaDoc<CR>
nnoremap <Space>u :action FindUsages<CR>
nnoremap <Space>o :action GotoDeclaration<CR>
nnoremap <Space>i :action GotoImplementation<CR>
nnoremap <Space>d :action CloseContent<CR>
nnoremap <Space>w <C-W>w