-
Notifications
You must be signed in to change notification settings - Fork 2
/
vsvimrc
31 lines (25 loc) · 911 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
set clipboard=unnamed " defaults to system clipboard
set hlsearch " highlight search results
set ignorecase " ignore case when searching
set number " show line numbers
set smartcase " override ignore case if searching for mixed case
set tabstop=4 " 2 space tabs
set shiftwidth=4 " autoindent 2 spaces
set expandtab " use spaces instead of tabs
" hide search highlighting with <esc>
nnoremap <esc> :nohlsearch<cr><esc>
nnoremap J <c-d>
vnoremap J <c-d>
nnoremap K <c-u>
vnoremap K <c-u>
" up/down work as expected with word wrapping on
nnoremap k gk
nnoremap j gj
nnoremap gk k
nnoremap gj j
" indent in visual mode with <tab>
vnoremap <tab> >gv
vnoremap <s-tab> <gv
" NOTE: this works well, but it only works in the editor... not in Solution
" Explorer
" map <C-A-S-i> :vsc ReSharper.ReSharper_GenerateFileBesides<cr>