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
1 answer

vsvim when input shift+each letter in insert mode, it add a '\n' automatically

I use vsvim and when I input 'shift+each letter' for a capital letter in the insert mode, it add a '\n' automatically. It puzzles me. Why does this happen and how can I avoid this?
0
votes
1 answer

vsvim call to function not supported

I wrote a function in my vimrc file: function! InsertDebugBlock() call append(line('.'), [", "]) call setline(line('.') + 1, '#if DEBUG') call setline(line('.') + 2, '#endif') normal j startinsert endfunction however, when I…
Deler
  • 61
  • 5
0
votes
1 answer

Vim setup with Visual Studio

Its being a while where I am using VIM with VS Code. But my current project require use of Visual Studio. While setting vim for vs code I have modified my settings.json and keybindings.json files. How do apply that kind of modifications in Visual…
0
votes
1 answer

How can I reverse selection in VsVim?

I want to reverse selected text in VsVim in VS2022. For instance: asdfg to gfdsa I have tried Reverse selected text and this solution. But these measures made my selection replaced by c. If I secelct the text visually first, and type :set revins, I…
io888
  • 13
  • 6
0
votes
0 answers

How do I replace text from second capture group

I have attributes in a c# file like so, all are gauranteed to be on their own line [DataType("Checkbox")] public bool SomeCheckBox { get; set; } [DataType("Text")] public string SomeText { get; set; } Using VSVIM I…
0
votes
1 answer

How to remap ESC key to CAPS LOCK in VsVIM in Visual studio

I used to use Vim in Ubuntu. Now use Visual Studio in Windows. I am relatively new to Visual studio. I have installed VsVim extension and want to remap ESC key to CAPS LOCK to quit insert mode and get into Normal mode. How to customize this?
amballip
  • 73
  • 4
0
votes
1 answer

Copy in insert mode with mouse

I'm using vsvim, sometimes I highlight code in insert mode with my mouse and want to copy or cut it out. But I don't know-how. Instead, I have to change back to normal mode, highlight it again then cut it. I tried to Ctrl+O but it would get rid of…
Howard Do
  • 33
  • 6
0
votes
0 answers

VsVim: Error: %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l displayed under editor window

when i install the VsVim extension in Visual Studio the following error is displayed right under my editor window. %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l How can i resolve the error?
emrich
  • 145
  • 1
  • 9
0
votes
1 answer

Open file in Visual Studio's split window which is already open in another window

using Visual Studio 2019 Community here. I have two windows split vertically (that is to say, a window on the left and one on the right) and I have a bunch of .h files open in my left window. If I'm currently in the right-hand window, and use…
eLim
  • 54
  • 4
0
votes
1 answer

Is there a feature flag I can test in .vimrc to tell whether I am running VsVim?

In .vimrc, I can test whether I am loaded in GVim by testing for has('gui_running'). Is there a similar feature flag that VsVim uses so I can test whether VsVim is currently running? The reason is that there are some mappings that I use in regular…
Chad Gilbert
  • 36,115
  • 4
  • 89
  • 97
0
votes
1 answer

Replace default movement keys in Visual Studio menus

I am using VsVim and I would like to make the rest of the menus in visual studio to be navigated using j to go down and k to move up. For example, when using the Go To All feature, it would be nice to be able to navigate the results using j and k…
mbl
  • 805
  • 11
  • 18
0
votes
1 answer

Change insert cursor caret in VS19

I am not a fan of the beam/virtual caret for text insertion. I much prefer a horizontal/underline cursor caret. I tried guicursor but it appears to not be supported. How can I configure VsVim or Visual Studio to get the desired cursor caret…
drCoding
  • 65
  • 1
  • 3
  • 11
0
votes
0 answers

VsVim - vit and vat not working correctly

I am using the VsVim plugin with Visual Studio 2017. I do a lot of XAML/HTML editing and recently read that the vit / vat commands can select content between tags. However, when the tag definition extends over multiple lines, this does not seem to…
Matthew S
  • 343
  • 3
  • 11
0
votes
1 answer

VSVim - Escape mapping breaks cursor position behavior

I reduced my _vsvimrc file to a single line : inoremap jk Now whenever I hit jk or esc directly, it gets back to normal mode but also puts the cursor at the column 0 : gif showing the behavior. Removing the mapping of jk resolves the…
Sbu
  • 910
  • 11
  • 22
0
votes
2 answers

Vim/Vi Select visual select inside macro

I would like to create a macro to replace having to type: vi( vi[ vi" etc. I have been trying things along the line of: :nnoremap vy:exe vi"0 but not succeeding. I'm on Windows using VsVim. Thanks.