-
Notifications
You must be signed in to change notification settings - Fork 1
/
.ideavimrc
32 lines (25 loc) · 871 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
" Reselect visual block after indent/outdent
vnoremap < <gv
vnoremap > >gv
let mapleader = ","
map <leader>ci :action CommentByLineComment<CR>
map <leader>cm :action CommentByBlockComment<CR>
" Keep search pattern at the center of the screen.
nnoremap <silent> n nzz
nnoremap <silent> N Nzz
nnoremap <silent> * *zz
nnoremap <silent> # #zz
nnoremap <silent> g* g*zz
nnoremap <silent> g# g#zz
imap <C-e> <Esc>A;<CR>
nnoremap <C-s> :%s/\s\+$//<CR>
inoremap <C-s> <esc>:%s/\s\+$//<CR>
nnoremap <C-w>L :action com.mnw.tabmover.actions.MoveTabToNextSplitter<cr>
nnoremap <C-w>H :action com.mnw.tabmover.actions.MoveTabToPreviousSplitter<cr>
nnoremap <leader>q :action QuickJavaDoc<CR>
nnoremap <leader>i :action ShowHoverInfo<CR>
" fix mistype :W
command! -bang -range=% -complete=file -nargs=* W <line1>,<line2>w<bang> <args>
set relativenumber
set number
set showmode