viEmu is an emulation of the Vi/vim editor for Visual Studio, Word,Outlook and SQL Server
Questions tagged [viemu]
24 questions
501
votes
14 answers
How to insert text at beginning of a multi-line selection in vi/Vim
In Vim, how do I insert characters at the beginning of each line in a selection?
For instance, I want to comment out a block of code by prepending // at the beginning of each line assuming my language's comment system doesn't allow block…

Jordan Parmer
- 36,042
- 30
- 97
- 119
123
votes
6 answers
Search for selection in Vim
I use Vim and Vim plugins for Visual Studio when writing C++. Often, I find myself wanting to search for a string within a function, for example every call to object->public_member.memberfunc().
I know Vim offers a convenient way to search for a…

Marcin
- 12,245
- 9
- 42
- 49
39
votes
17 answers
Text editors with vim mode?
I've come across ViEmu, and I read the very motivating article: Why, oh WHY, do those #?@! nutheads use vi?
Anyway, I've come to like the command mode in vim, specially the motions, and I also like the idea behind ViEmu, which is to bring "vim mode"…

hasen
- 161,647
- 65
- 194
- 231
24
votes
11 answers
What's the point of viEmu plugin for Visual Studio?
This may sound a bit provocative but it actually is a real question. Feel free to edit if you don't like the tone.
Now, as much as I understand vi from my short experience with it like 10 years ago, it's a primitive text editor with one editable…

Andriy Volkov
- 18,653
- 9
- 68
- 83
11
votes
5 answers
Resharper and ViEmu Keybindings ( and Visual Assist )
With ViEmu you really need to unbind a lot of resharpers keybindings to make it work well.
Does anyone have what they think is a good set of keybindings that work well for resharper when using ViEmu?
What I'm doing at the moment using the Visual…

Keith Nicholas
- 43,549
- 15
- 93
- 156
7
votes
1 answer
Cut to beginning/end of line, paste over to end/beginning of line
If I am in the middle of a line, how to I cut to the beginning/end of a line? (is copy different)
If I am in the middle of a line, how do I paste over to the beg/end of the line? (is pasting w/o copying over the text much different?)
thanks allot!

codecompleting
- 9,251
- 13
- 61
- 102
5
votes
3 answers
Command to delete an entire method?
I am using viemu in VS 2010. Is there a reliable command to delete an entire method in C# source code?
Here are things I have tried:
The movement commands } and ]] are not smart enough to pick out a method. Although at times they do happen to…

Matt Greer
- 60,826
- 17
- 123
- 123
5
votes
4 answers
Touch typing in Visual Studio 2008
I am a touch typist.
I am using a regular HP 17" laptop...
When using visual studio 2008, frequently my right hand leaves the home row to use the arrow keys to navigate to different lines of code in the editor.
I have seen viemu, iam not a vi user…

Developer
- 17,809
- 26
- 66
- 92
3
votes
4 answers
How would you do a cut and paste with this in VIM?
Say you had this text:
SOMETHING_XXXXXXXXXXXXXX_ELSE
SOMETHING_XXXXXXXXXXXXXX_ELSE2
SOMETHING_XXXXXXXXXXXXXX_ELSE3
SOMETHING_XXXXXXXXXXXXXX_ELSE4
And you wanted to replace all XXX..XXX with this word:
HELLOWORLD
If I go into visual mode, then yank…

codecompleting
- 9,251
- 13
- 61
- 102
3
votes
3 answers
ViEmu & Resharper: How to "Redo"
I'm trying out ViEmu with Visual Studio 2010 & R#. In Vim I use ctrl-r to redo, but in ViEmu and VS ctrl-r doesn't work. The status bar says "Waiting for second key of chord". I assume this is for shortcuts like R# Rename (Ctrl-r,r)
Is there some…

Evan
- 5,925
- 6
- 33
- 35
3
votes
4 answers
How to select a rectangular area in visual block mode (Ctrl+v) in empty file (vim)?
I can easily select a rectangular area in a file provided this area contains text or spaces (or anything). I do it with visual block mode and motion keys.
But when I try to create such area in a new file (or any file without text) I can't.
Is there…

Valentin V
- 24,971
- 33
- 103
- 152
2
votes
1 answer
Free alternative of ViEmu?
Is there a free/open source alternative to ViEmu for Visual Studio?

Jichao
- 40,341
- 47
- 125
- 198
1
vote
2 answers
how can i move the cursor in insert mode in viemu (w/o using the arrow keys)?
sometimes i just want to move either left or right a couple of characters (or go to the end of the line) but don't really want to leave insert mode just to move a couple chars.

Gabe Anzelini
- 231
- 1
- 3
- 10
1
vote
2 answers
Repeat a line command?
I'm new to the more advanced aspects of vi/vim/viemu
I commonly need to select a bit of text and indent/undent, among other things. Right now I have two ways to do this:
select the text and use <<
use a multi-line command such as :198,205<<
Now,…

Earlz
- 62,085
- 98
- 303
- 499
1
vote
1 answer
Viewing registers in ViEmu
I am using the ViEmu extension for Visual Studio 2015. In Vim I can view the content of registers with :registers or :reg. In ViEmu this returns "Unknown command".
How can the registers be viewed in ViEmu?

user2609980
- 10,264
- 15
- 74
- 143