-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_vsvimrc
62 lines (46 loc) · 1.32 KB
/
_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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
" This is a slimmed down vimrc file just for VsVim which operates only in
" Visual Studio.
set backspace=indent,eol,start
map <space> <leader>
inoremap jf <Esc>
nnoremap <TAB> <PageDown>zz
nnoremap <S-TAB> <PageUp>zz
nnoremap s :w<CR>
" Fast saving, but use update not write.
nnoremap <Leader>w :w<CR>
" stay on current search
nnoremap * *N
"[C]lear [W]hitespace at End of Line
nnoremap <leader>cw :%s/\v\s+$//<cr>
" These mappings are for VisualStudio Vim in order to get correct indentation.
nnoremap S ddO
nnoremap cc S
" Quick mappings for the beginning and ends of lines
noremap H ^
noremap L $
" Want ctrl-backspace to delete whole word in insert mode
inoremap <C-BS> <C-W>
"Clear the previous search (c[lear] h[ighlight])
nnoremap <leader>ch :nohlsearch<cr>
inoremap ,c class<Space>
inoremap ,d double
inoremap ,l List<><Left>
inoremap ,m Dictionary<, ><Esc>2hi
inoremap ,n throw new NotImplementedException();
inoremap ,p public<Space>
inoremap ,r return<Space>
inoremap ,s string
inoremap ,t ToList();<Esc>
inoremap <C-L> <Esc>A
set hlsearch " highlight search
" All the ways to misspell common keywords in C#
iabbrev fasle false
iabbrev flase false
iabbrev parital partial
iabbrev partila partial
iabbrev pbuilc public
iabbrev pbulci public
iabbrev pbulic public
iabbrev pulbic public
iabbrev stirng string
iabbrev ture true