-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
64 lines (53 loc) · 1.65 KB
/
vimrc
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
63
64
set clipboard=unnamedplus
set hlsearch
set ignorecase
set incsearch
" copied from Vim 7.3's mswin.vim:
" CTRL-X and SHIFT-Del are Cut
vnoremap <C-X> "+x
vnoremap <S-Del> "+x
" CTRL-C and CTRL-Insert are Copy
vnoremap <C-C> "+y
vnoremap <C-Insert> "+y
" CTRL-V and SHIFT-Insert are Paste
map <C-V> "+gP
map <S-Insert> "+gP
imap <C-V> <Esc>"+gpa
cmap <C-V> <C-R>+
cmap <S-Insert> <C-R>+
" My mappings
" let mapleader = ","
nmap <C-O> :vsc View.NavigateBackward<CR>
nmap <C-I> :vsc View.NavigateForward<CR>
" imap <C-N> <C-O>:vsc Edit.LineDown<CR>
" imap <C-P> <C-O>:vsc Edit.LineUp<CR>
nmap g] :vsc Edit.GoToNextIssueinFile<CR>
nmap g[ :vsc Edit.GoToPreviousIssueinFile<CR>
nmap gd :vsc Edit.GoToDefinition<CR>
nmap gy :vsc Edit.GoToTypeDefinition<CR>
" nmap gi :vsc Edit.GoToImplementaion<CR>
nmap gr :vsc Edit.FindAllReferences<CR>
nmap gk :vsc Edit.QuickInfo<CR>
nmap <Leader>rn :vsc Refactor.Rename<CR>
nmap <Leader>f :vsc Edit.FormatSelection<CR>
vmap <Leader>f :vsc Edit.FormatSelection<CR>
imap <C-W> <C-O>:vsc Edit.WordDeleteToStart<CR>
nmap gf :vsc Edit.GoToAll<CR>
nmap gi :vsc View.ShowSmartTag<CR>
map gc :vsc Edit.ToggleLineComment<CR>
nmap <Leader>s :vsc Debug.StepInto<CR>
nmap <Leader>o :vsc Debug.StepOut<CR>
nmap <Leader>n :vsc Debug.StepOver<CR>
" fun! ToggleW00tMode()
" if !exists('b:w00t')
" let b:w00t=1
" else
" unlet b:w00t
" endif
" return ""
" endfun
" inoremap <C-w> <C-r>=ToggleW00tMode()<Cr>
" " Do something different depending on the value of b:w00t
" inoremap <expr> o exists('b:w00t') ? '0' : 'o'
nmap <Leader>t :vsc EditorContextMenus.CodeWindow.ToggleHeaderCodeFile<CR>
nmap <Leader>c :vsc File.Close<CR>