vi

Anyone know of any (free / open source) VI integration for Visual Studio?

vi is for cool kids. ...

Can I use RegEx and VI (or something similar) to autofill some text for me?

NOTE: I am not set on using VI, it is just the first thing that came to mind that might be able to do what I need. Feel free to suggest any other program. I have a form with nearly 100 fields that I would like to auto-fill with PHP. I know how to do the autofill, but I would like to avoid manually adding the needed text to 100 fields. ...

Advanced searching in Vim

Hey Folks, Is there a way to search for multiple strings simultaneously in Vim? I recall reading somewhere that it was possible but somehow forgot the technique. So for example, I have a text file and I want to search for "foo" and "bar" simultaneously (not necessarily as a single string, can be in different lines altogether). How do ...

Customising word separators in vi

vi treats dash and space as word separators for commands such as dw and cw. Is there a way to add underscore as well ? I quite often want to change part of a variable name containing underscores e.g. change src_branch to dest_branch I end up counting characters and using s (e.g. 3sdest) whereas it would be much easier to use cw (e.g. ...

Vi/Vim: How to pipe visually selected text to a UNIX command and append output to current file

Using Vim, I'm trying to pipe visually selected text to a UNIX command and have the output appended to the end of the current file. For example, say we have a SQL command such as: SELECT * FROM mytable; I want to do something like the following: V # select text :'<,'>!mysql -uuser -ppass mydb But instead of having the output overwri...

Tab key == 4 spaces and auto-indent after curly braces in VIM.

How do I make Vi-Vim never use tabs (converting spaces to tabs, bad!), makes the tab key == 4 spaces, and automatically indent code after curly brace blocks like emacs does? Also, how do I save these settings so I never have to input them again. I've seen other questions related to this but it always seems to be a little off from what ...

How to debug in VI

Using vim 7.1, I recently heard you can debug php in VI. But how? ...

vi indentation

What's the easiest way to increase or decrease indentation for a large block of code in vi? ...

JTextArea in vi mode

Is there a free and open source extension of JTextArea that would support "vi mode"? ...

Recommendations for a good vi reference?

As I don't use vi all that much and certainly not for my primary editor, I can't remember any of the vi commands. Does anyone have a recommendation for a quick start guide or command summary? ...

Vim: how to paste over without overwriting register

Does anyone know of a way that I can paste over a visually selected area without having the selection placed in the default register? I know I can solve the problem by always pasting from an expicit register. But it's a pain in the neck to type "xp instead of just p Thanks ...

Does any IDE have a vi keybindings options?

One of the reasons I usually don't use an IDE for development is that I'm so used to vi keybindings that I usually end up messing up my text and putting in lots of ":w"s, and I can't use vi's powerful regex replace mechanism. Are there any IDEs that allow you to configure vi keybindings or use vi as the editor within the IDE? Related: ...

What modal editors are available aside from vi/vim?

Another question asked why there are so few non-vi modal editors. A few of the comments in that question mentioned other modal editors in passing, but I think that it would be useful to develop a more comprehensive list. Searching for this information on Google is difficult, as vim-related information tends to drown out everything else. ...

How to get rid of GVim folding comments in your code?

There is someone in my team that swears by using some kind of GVim feature to do manually code folding. As I'm using another editor and do not really need the folding feature, I think it only pollutes the source code with tags like: /* {{{1 */ Convincing the person not to use this folding is not an option (got into some heated discus...

Popular Vim alternatives?

Are there any Vi clones that are still in wide use today (besides Viper mode in Emacs ;)), other than Vim? If so, what are the pros/cons to using it instead of Vim? ...

Has anyone ever attempted to re-imagine Vim?

Firstly, I want to state for the record that I am not attempting to be a troll, and I do not intend this question to be flamebait. I asked an earlier question in an attempt to discover what other modal editors existed besides Vi/Vim. I was fully expecting that there would be at least a couple of other general-purpose editors that were s...

How would I create a VIM or Vi command to delete all text after a certain character for every line in a text file?

Scenario: I have a text file that has pipe (as in the "|" character) delimited data. Each field of data in the pipe delimited fields can be of variable length, so counting characters won't work (or using some sort of substring function... if that even exists in VIM). Is it possible, using VIM / Vi to delete all data from the second p...

Advice for Getting By in the Delphi IDE without VI

As a long time VIM user, it pains me to have to use the Delphi IDE. At least with Visual Studio there's ViEmu which works well. So, do you have any advice for getting by in the Delphi IDE when you're so used to VI? Any settings that you'd recommend to make things a little more familiar? Any specific keyboard shortcuts that can save t...

Auto formatting for vi?

Does an auto-formatting tool exist for vi that'll allow me to define per language preferences? edit: I'm not looking for syntax highlighting. I'm looking for something that will apply formatting rules to my code. (Like brace positioning, spaces around oeprators, etc) ...

How do you quit the Vi editor with single keypress?

Because honestly :wq! is just too much to type :) Please note that the question is about original Vi (say Vi which comes with FreeBSD) not Vim. ...