viemu

How to insert text at beginning of a multi-line selection in vi/Vim

荒凉一梦 提交于 2019-12-17 14:58:22
问题 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 commenting like /* */ . How would I do this? 回答1: Press Esc to enter 'command mode' Use Ctrl + V to enter visual block mode Move Up / Down to select the columns of text in the lines you want to comment. Then hit Shift + i and type the text you want to insert.

Resharper and ViEmu Keybindings ( and Visual Assist )

元气小坏坏 提交于 2019-12-06 19:39:24
问题 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 Studio bindings from Resharper. Toasting all the conflicting ones with ViEmu, and then just driving the rest through the menu modifiers ( Alt-R keyboard shortcut for the menu item ). I also do the same with Visual Assist shortcuts ( for C++ ) if

Resharper and ViEmu Keybindings ( and Visual Assist )

别等时光非礼了梦想. 提交于 2019-12-05 02:15:18
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 Studio bindings from Resharper. Toasting all the conflicting ones with ViEmu, and then just driving the rest through the menu modifiers ( Alt-R keyboard shortcut for the menu item ). I also do the same with Visual Assist shortcuts ( for C++ ) if anyones got any tips and tricks for ViEmu / Resharper or Visual Assist working together well I'd most

How do I insert text at beginning of a multi-line selection in vi/Vim?

喜你入骨 提交于 2019-11-27 16:33:16
In Vim , how would I go about inserting characters at the beginning of each line in a selection? For instance, let's say 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 commenting like /* */ ). How would I do this? pixelbeat Press Esc to enter 'command mode' Use Ctrl + V to enter visual block mode Move Up / Down to select the columns of text in the lines you want to comment. Then hit Shift + i and type the text you want to insert. Then hit Esc , wait 1 second and the inserted text will appear on

Search for selection in vim

你。 提交于 2019-11-26 05:16:59
问题 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 single word, by pressing * and # , and it can also search for typed strings using the ubiquitous slash / command. When trying to search for all the instances of a longer string like the one above, it takes a while to re-type after / . Is there a way