How to map keys in VsVim to Visual Studio commands?
Asked Answered
F

1

11

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

Footwork answered 23/11, 2014 at 13:57 Comment(0)
P
15

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

Probst answered 23/11, 2014 at 16:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.