-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
44 lines (36 loc) · 890 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
""" Set <leader>
let mapleader=" "
""" Plugins
set multiple-cursors
set highlightedyank
set commentary
""" Plugins settings
map <C-n> <Plug>NextWholeOccurrence
""" Common settings
set showmode
set showcmd
set scrolloff=5
set incsearch
set hlsearch
set nu rnu
""" Idea specific settings
set ideajoin
set ideastatusicon=gray
set lookupkeys
""" Key mapping -----------------
""" Ideavim actions
nmap [[ <Action>(MethodUp)
nmap ]] <Action>(MethodDown)
nmap <leader>s <Action>(ShowUsages)
nmap <leader>u <Action>(FindUsages)
nmap gs <Action>(GotoSuperMethod)
nnoremap <silent> <ESC> :noh<CR><ESC>
""" Commentary
nmap <leader>/ :Commentary<CR>
vmap <leader>/ :Commentary<CR>
""" Toggle case and start typing.
""" Ex) '<leader>iget': 'property' -> 'getProperty'
nmap <leader>i ~hi
""" Remove selection and toggle case.
""" Ex) 'v2l<leader>u': 'getProperty' -> 'property'
vmap <leader>u d~h