-
Notifications
You must be signed in to change notification settings - Fork 1
/
ideavimrc
48 lines (37 loc) · 989 Bytes
/
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
set ideajoin
set surround
set easymotion
set NERDTree
set incsearch
set ignorecase
set smartcase
set idearefactormode=keep
set number relativenumber
set clipboard+=unnamed
set clipboard+=ideaput
set scrolloff=999
let mapleader = " "
" system clipboard
vmap <leader>y "+y
vmap <leader>d "+d
nmap <leader>y "+yy
nmap <leader>p "+p
nmap <leader>P "+P
vmap <leader>p "+p
vmap <leader>P "+P
" Move around windows
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <TAB> :action NextTab<CR>
nnoremap <s-TAB> :action PreviousTab<CR>
nnoremap gd :action GotoDeclaration<CR>
nnoremap gi :action GotoImplementation<CR>
nnoremap <leader>r :action Refactorings.QuickListPopupAction<CR>
nnoremap <c-t> :action ActivateTerminalToolWindow<CR>
nnoremap <c-v> :action SplitVertically<CR>
nnoremap <c-x> :action SplitHorizontally<CR>
nnoremap <c-f> :action FindInPath<CR>
nnoremap \r :action IdeaVim.ReloadVimRc.reload<CR>
nnoremap <leader>x :bd<CR>