-
Notifications
You must be signed in to change notification settings - Fork 0
/
ideavimrc
28 lines (22 loc) · 878 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
" vi:ft=vim
" General Settings
"set showmode " Show current mode down the bottom
let mapleader = ',' " Change leader to a comma
" Cut/Paste
set clipboard=unnamed " Yank and paste with the system clipboard
" Don't yank when replace-pasting
vnoremap p "_dP
" Search
set incsearch " Find the next match as we type the search
set ignorecase " Ignore case when searching...
set smartcase " ...unless we type a capital
" Scrolling
set scrolloff=7 " Scroll 7 lines away from top/bottom
set sidescroll=1 " Keep the cursor on the screen
" Tabs
nnoremap <Tab> >>_
nnoremap <S-Tab> <<_
vnoremap <Tab> >gv
vnoremap <S-Tab> <gv
" Reload .vimrc
noremap <silent> <leader>V :source ~/.ideavimrc<CR>:echo 'ideavimrc reloaded'<CR>