How to map keys in VsVim to Visual Studio commands?

Is it possible to map keys in VsVim to Visual Studio commands? For example, is it possible to map gb to View.NavigateBackward ?

+7
visual-studio keymapping vsvim
source share
1 answer

You do this through the _vsvimrc file.

This should do the trick:

nnoremap gb :vsc View.NavigateBackward<CR>

You can even display extension commands, for example from Resharper:

nnoremap gi :vsc Resharper.Resharper_GotoImplementation<CR>

Full documentation is here: https://github.com/jaredpar/VsVim/wiki/VsVim-Nonstandard-Behavior

+9
source share

All Articles