-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_ideavimrc
26 lines (24 loc) · 859 Bytes
/
dot_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
" Use relative numbers for all lines except current line
set number relativenumber
" Make forwardslash search case insensitive unless a cap letter is in search
set hlsearch
set incsearch
set ignorecase smartcase
" A bit of padding around the current line
set scrolloff=5
" Bindings ====================================================================
" Leader as space. \<Space> doesn't work with ideavim
let mapleader= " "
" clear highlighting
nmap <leader>h :noh<CR>
" Find all usages of symbol
nmap gr :action FindUsages<CR>
" IdeaVIM specific ============================================================
" Enable vim-surround emulation
set surround
" Enable vim-commentary emulation
set commentary
" Enable easymotion emulation
set easymotion
" Use intellij action to wrap text in visual mode
vmap gq :action com.andrewbrookins.idea.wrap.WrapAction<CR>