Is it possible to map keys in VsVim to Visual Studio commands? For example, can I map gb
to View.NavigateBackward
?
Asked
Active
Viewed 4,862 times
10

Smilediver
- 1,738
- 23
- 26
1 Answers
13
You do it via your _vsvimrc file.
This should do the trick:
nnoremap gb :vsc View.NavigateBackward<CR>
You can even map extension commands, like those from Resharper:
nnoremap gi :vsc Resharper.Resharper_GotoImplementation<CR>
The full documentation is here: https://github.com/jaredpar/VsVim/wiki/VsVim-Nonstandard-Behavior

Thomas Svensen
- 760
- 1
- 7
- 14