-
Notifications
You must be signed in to change notification settings - Fork 7
/
ideavimrc
55 lines (42 loc) · 1.16 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
#source ~/.vimrc
"액션 목록은 :actionlist"
"액션 검색은 :actionlist 검색어"
set visualbell
set noerrorbells
let mapleader = " "
set ignorecase
set smartcase
set scrolloff=5
set incsearch
" Emulated Plugins
set surround
set NERDTree
set which-key
set notimeout
" Copy to system clipboard as well
set clipboard+=unnamed
" Use Idea to join lines smartly
set ideajoin
" Multiple cursors support
set multiple-cursor
" These settings are from - https://github.com/Valloric/dotfiles/blob/master/intellij/ideavimrc
" Use Q for formatting the current paragraph (or visual selection)
vmap Q gq
nmap Q gqap
" These create newlines like o and O but stay in normal mode
nmap zj o<Esc>k
nmap zk O<Esc>j
nmap <S-h> :tabprev<Return>
nmap <S-l> :tabnext<Return>
imap jk <Esc>
imap ㅓㅏ <Esc>
" Terminal
nmap <leader>ot :action ActivateTerminalToolWindow<cr>
" Normal
nmap <leader>fr :action RecentFiles<cr>
nmap <leader>g :action ActivateCommitToolWindow<cr>
nmap <leader>ji :action FindInPath<cr>
nmap <leader><leader> :action SearchEverywhere<cr>
nmap <leader>jj :action AceAction<cr>
nmap <leader>jl :action AceLineAction<cr>
nmap <leader>pf :action SearchEverywhere<cr>