Top "Vi" questions

vi is a family of text mode-oriented text editors.

How to replace text between quotes in vi

Say I have this line of code: $query = "SELECT * FROM table"; Is there a command in vi/vim which can …

vim vi
vi to delete from the beginning of the line till the cursor

How can we use vim to delete characters from the beginning of the line till the cursor. Say, we have …

vim text-editor vi
In Vim/Vi, how do you move the cursor to the end of the previous word?

In Vim's normal mode: e goes to the end of the next word w goes to the beginning of the …

vim vi
How to search a string with spaces and special characters in vi editor

I edit in the vi editor. I want to search in the text for a specific phrase, e.g "Dec 1 15:13:00". …

string search vim special-characters vi
Will Emacs make me a better programmer?

Steve Yegge wrote a comment on his blog: All of the greatest engineers in the world use Emacs. The world-changer …

emacs text-editor vi
Best way to insert timestamp in Vim?

EditPad Lite has a nice feature (CTRL-E, CTRL-I) which inserts a time stamp e.g. "2008-09-11 10:34:53" into your code. …

vim vi
Error opening terminal: xterm-256color

When I try to nano something on my server I'm getting this error "Error opening terminal: xterm-256color." that I've …

ubuntu terminal vi xterm nano
Package(Plugin) Management for Vim

Emacs 24 looks like it will have a package manager. What package management options are there for Vim?

vim packages vi vim-plugin package-managers
How to write a VIM color scheme?

I have been looking around for VIM color schemes and found some great ones out there (esp. by using http://…

vim vi vim-plugin
How to generate a number sequence in file using vi or Vim?

Is there a way to generate a number sequence in vi or Vim? For example, for an arbitrary range of …

vim pattern-matching vi sequential