forked from patrickcjh/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vsvimrc
34 lines (27 loc) · 907 Bytes
/
.vsvimrc
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
" Vim Setting Config for Visual Studio VsVim Extension.
" Some tuning
set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
set number
" Tabs settings
set expandtab
set softtabstop=0
set shiftwidth=2
set tabstop=2
" Quickly select the text that was just pasted. This allows you to, e.g.,
" indent it after pasting.
noremap gV '[v']
" Stay in visual mode when indenting. You will never have to run gv after
" performing an indentation.
vnoremap < <gv
vnoremap > >gv
" move text in visual mode
vnoremap K :<C-u>execute "normal gvdkP"<CR> | '[v']V
vnoremap J :<C-u>execute "normal gvdjP"<CR> | '[v']V
" Make Y yank everything from the cursor to the end of the line. This makes Y
" act more like C or D because by default, Y yanks the current line (i.e. the
" same as yy).
noremap Y y$
" Avoid pressing shift key to switch to previous tab
noremap gr gT
nnoremap gq <C-w>c