-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vsvimrc
87 lines (75 loc) · 2.57 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
noremap <SPACE> <Nop>
noremap <SPACE>/ :vsc Edit.ToggleComment<cr>
noremap <SPACE>w :w<cr>
noremap <S-K> :vsc Edit.QuickInfo<cr>
let mapleader=" "
set autoindent
set backspace='eol,start,indent'
set clipboard='unnamed'
set expandtab
set ignorecase
set incsearch
set list
set novisualbell
set hlsearch
set nostartofline
" set shiftround
set shiftwidth=4
set showcmd
set scrolloff=8
set smartcase
set tabstop=4
set ttimeout
set ttimeoutlen=50
" set vb t_vb=
set vsvimcaret=50
nmap j gj
nmap k gk
" search
vnoremap * "/y/<C-r>/<CR>
vnoremap # "/y?<C-r>/<CR>
nnoremap <SPACE>laa :vsc EditorContextMenus.CodeWindow.QuickActionsForPosition<cr>
nnoremap <SPACE>lr :vsc Refactor.Rename<cr>
" nnoremap gr :vsc View.ShowReferences<cr>
nnoremap <SPACE>db :vsc Debug.ToggleBreakpoint<cr>
nnoremap <SPACE>dc :vsc Debug.Start<cr>
nnoremap <SPACE>dn :vsc Debug.StepInto<cr>
nnoremap <SPACE>do :vsc Debug.StepOver<cr>
nnoremap <SPACE>dO :vsc Debug.StepOut<cr>
nnoremap <SPACE>dq :vsc Debug.StopDebugging<cr>
nmap <C-o> :vsc View.NavigateBackward<CR>
nmap <C-i> :vsc View.NavigateForward<CR>
nnoremap gwo :vsc FullScreen<cr>
nnoremap gws :vsc Window.Split<cr>
nnoremap gwc :vsc Window.Split<cr>
nnoremap d<tab> :vsc Window.CloseDocumentWindow<cr>
nnoremap gwC :vsc Window.CloseDocumentWindow<cr>
nnoremap H :vsc Window.PreviousTab<cr>
nnoremap L :vsc Window.NextTab<cr>
nnoremap gwS :vsc Window.NewHorizontalTabGroup<cr>
nnoremap gwv :vsc Window.NewVerticalTabGroup<cr>
nnoremap gwT :vsc Window.Float<cr>
nnoremap gwj :vsc Window.NextSplitPane<cr>
nnoremap gwk :vsc Window.PreviousSplitPane<cr>
map gi :vsc Edit.GoToImplementation<CR>
map gr :vsc Edit.FindAllReferences<CR>
map gp :vsc Edit.PeekDefinition<CR>
nnoremap <C-r> :vsc Redo<CR>
" jump between compilation errors
nnoremap ]e :vsc View.NextError<cr>
nnoremap [e :vsc View.PreviousError<cr>
" evaluate F#
xnoremap <enter> :vsc EditorContextMenus.CodeWindow.ExecuteInInteractive<cr>
nnoremap yxx ggVG:vsc EditorContextMenus.CodeWindow.ExecuteInInteractive<cr>
nnoremap <enter> :vsc EditorContextMenus.CodeWindow.ExecuteLineInInteractive<cr>
nnoremap ]q :vsc Edit.GoToNextLocation<cr>
nnoremap [q :vsc Edit.GoToPrevLocation<cr>
nnoremap ]l :vsc Edit.NextHighlightedReference<cr>
nnoremap [l :vsc Edit.PreviousHighlightedReference<cr>
" toggle 'Track Active Item in Solution Explorer' option
nnoremap cos :vsc View.TrackActivityinSolutionExplorer<cr>
nnoremap <space>e :vsc View.SolutionExplorer<cr>
" highlight active file in Solution Explorer (VS 2012+)
nnoremap ^ :vsc SolutionExplorer.SyncWithActiveDocument<cr>
" 'omnibox'
nnoremap <space>fq :vsc Window.QuickLaunch<cr>