-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathapocryphal.vs.vim
More file actions
27 lines (21 loc) · 1001 Bytes
/
apocryphal.vs.vim
File metadata and controls
27 lines (21 loc) · 1001 Bytes
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
" Open solution explorer
noremap <space>e :vsc View.SolutionExplorer<CR>
" Symbol picker; s is easier to type than S and Visual Studio does not have a file-local symbol picker
noremap <space>s :vsc Edit.GoToSymbol<CR>
" Close current tab/file
noremap <space>q :q<CR>
" TODO: these alt keys do not work, though it seems they should:
" https://github.com/VsVim/VsVim/issues/806
noremap <A-e> <Esc>mabmbviwveviwovhmc`bhmblvh]`o
noremap <A-E> <Esc>maBmbviWovEviWvhmc`bhmblvh]`o
" TODO: add special cases for VsVim multiple selections
" https://github.com/VsVim/VsVim/blob/master/Documentation/Multiple%20Selections.md
" Surround mode
noremap msb :vsc Edit.SurroundWith<CR>
" Workarounds to get out of insert mode when VS is stuck
noremap <Esc> <Esc>hl<Esc>
noremap <F1> <Esc>:vsc Tools.InvokePeasyMotion<CR>
" Test runner
noremap <space>tr :vsc TestExplorer.RunAllTestsInContext<CR>
noremap <space>td :vsc TestExplorer.DebugAllTestsInContext<CR>
noremap <space>tl :vsc TestExplorer.DebugLastRun<CR>