-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathideavimrc
39 lines (29 loc) · 1.34 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
set visualbell
set noerrorbells
set number " line numbers
set hlsearch " highlight search occurrences
set ignorecase " ignore case in search patterns
set smartcase " no ignore case when pattern is uppercase
set incsearch " show search results while typing
set wrapscan " searches wrap around the end of the file
set gdefault " substitute all occurrences in line per default
set history=10000 " keep x lines of command line history
set scrolloff=5 sidescrolloff=10 " keep some lines before and after the cursor visible
set clipboard=unnamedplus,unnamed,ideaput " integrate with system clipboard
" https://github.com/JetBrains/ideavim/wiki/%22set%22-commands
set multiple-cursors
set commentary
set surround " emulate vim-surround plugin
set ideajoin
set ideastatusicon=disabled
let mapleader = " "
" edit ideavim config
nnoremap <leader>vv :e ~/.ideavimrc<CR>
nnoremap <leader>vr :source ~/.ideavimrc<CR>
" clear search highlighting
nnoremap <leader>/ :nohls<return><esc>
map gh <Action>(ShowErrorDescription)
nnoremap <leader>V :vsplit<CR>
imap <C-n> <ESC>:action HippieCompletion<CR>a
imap <C-p> <ESC>:action HippieBackwardCompletion<CR>a
nmap <C-p> :action SearchEverywhere<CR>