Questions tagged [vsvim]

VsVim is a free Visual Studio extension that makes the code editor a vim emulator.

VsVim is a free Visual Studio extension that makes the code editor a vim emulator. Written by Jared Parsons. https://github.com/jaredpar/VsVim

85 questions
1
vote
0 answers

How can I replace value with a series of increasing number in VsVim?

I want to replace this part with a series of increasing number in VsVim. Like so: std::map monthMap = { {"Jan", 0}, {"Janurary", 0}, {"Feb", 0}, {"February", 0}, {"Mar", 0}, {"March", 0} }; I want to substitute all 0 for 1, 2,…
io888
  • 13
  • 6
1
vote
1 answer

Cannot use register while in visual mode in vscode vim

Maybe I'm doing something wrong but while in visual mode, typing " and follow with register name will quit the command for some reason, like v"a.
Soutgrous
  • 61
  • 1
  • 7
1
vote
0 answers

VsVim 2022 keybindings not being applied

I'm trying to get VsVim for Visual Studio 2022 working, and have found that nothing changes--as if the extension was never installed; there are no error dialogs or logs. I have tried restarting Visual Studio, restarting the computer itself, and…
1
vote
1 answer

Regex convert to uppercase in VSVim

I'm currently using :s/(-[a-z].*-)([a-z])/$1\U$2/., however this just deletes the character after the 2nd - instead of converting it to an uppercase variant? I have a CSS file and I have several entries in the form of, ql-font-timesnewroman,…
Acorn
  • 1,147
  • 12
  • 27
1
vote
1 answer

Vim - Mimic ZenCoding/Emmet for other languages (like ZenSharp for C#)?

I have only tried Vim a few times, and am thinking of jumping in fully, but I was wondering if it had a feature similar to ZenSharp for ReSharper? Eg. if I type ppiCount+ it would expand to: public int Count { get; set; } You use similar mnemonics…
Falthazar
  • 85
  • 1
  • 1
  • 10
1
vote
1 answer

Avoid dual maintaining vimrc and vsvimrc files

I just discovered keithn/vsvimguide for using VsVim with Resharper and added some useful key-mappings that use Resharper's functionality to a new _vsvimrc file I created. Unfortunately, all my settings in my _vimrc which I use for gVim/vim elsewhere…
Jeff B
  • 8,572
  • 17
  • 61
  • 140
1
vote
1 answer

VsVim port keyboard settings to another VS instance

I am using VsVim in VS2015. I assign certain key combinations to be handled by VS or VsVim (see Tools -> Options -> VsVim -> Keyboard). I`m using VMs quite frequently with fresh installation of VS2015. How can I port keyboard settings to that other…
Foontik
  • 23
  • 4
1
vote
3 answers

Vsvim escape key rebinding

How I can rebind escape key in vsvim (in Visual Studio 2015)? Now, I use esc or ctrl + [ to enter command mode, but I want to use df keys instead. How I can rebind them? I find out that I need to create .vsvimrc file in my HOME directory and write…
1
vote
1 answer

VsVim does not keep macro after Visual Studio restart

When I enter a macro and run it, it works fine. Unfortunately after I restart Visual Studio all macros are gone. How to prevent it?
Krzysztof Morcinek
  • 1,011
  • 13
  • 42
1
vote
1 answer

Vim: How to jump to the second last edit?

I know I can jump back to the last edit with `. How can I jump further back to the second last edit? I am aware of CTRLO but this does not bring me necessarily to the edits.
Simon
  • 706
  • 6
  • 23
1
vote
1 answer

Can I define command-line commands for VsVim?

Is it possible to define my own custom command-line commands in VsVim like it can be done in Vim and described here? I tried adding different variations of the following lines to my .vsvimrc file, without success. command clean :vsc…
gcl
  • 13
  • 3
1
vote
1 answer

Matching does not stop at EOL when searching in VsVim

Using VS 2010 with VsVim. I'm finding that a search for quoted text, e.g. /["][^"]\{0,\}["] Which is one of the several different efforts I made to find a quote, maybe some stuff excluding quotes, followed by another quote, for example "stuff", or…
Garry H
  • 111
  • 4
1
vote
2 answers

vsvim code expand/collapse or fold/unfold shortcut in visual studio 2013

ctrl+m used to work as collapse/uncollapse shortcut before I installed vsvim. After installing vsvim using the zo command is uncollapsing a C# region block. But do not have a shortcut to fold till the end of the region. Using zf/string folds…
Kalyan
  • 488
  • 6
  • 17
1
vote
4 answers

How to find a keyword over mulitiple files using VsVim

When using VsVim, the key combination CtrlF is accupied by VsVim itself and if you know vim it basically scrolls you forward in your text for approximately one page. So I started to wonder if there is any feature in VsVim which can replace the…
Mehrad
  • 4,093
  • 4
  • 43
  • 61
1
vote
1 answer

Remove Shortcut Added by NCrunch from VS

I use the Visual Studio VsVim extension, I've recently installed NCrunch which seems to have grabbed the CTRL+R shortcut. How can I 'return' this shortcut to VsVim?
Isaac Kleinman
  • 3,994
  • 3
  • 31
  • 35