next up previous
Next: Text files and editors: Up: Introduction to the Linux Previous: Text files

Text files and editors: vi

vi (short for ``visual'') is a very powerful text editor, but takes a lot of getting used to. It works in two modes: command mode and edit mode. In command mode you can delete lines, search (and replace), move to different parts of the file and so on. In edit mode you can type and delete text. vi has a steep learning curve because it is not like many other text editors, but once you get the hang of it you can edit files very quickly.

When you start vi it starts in command mode and will fill the whole terminal window. If the file you are editting doesn't have enough lines to fill the window, non-existent lines are indicated by a tilde ` '.

Probably the most important things you need to know to use vi are:

Many computer officers and other experienced Linux users like vi because it can do a lot with very few key presses, enabling an experienced vi user to rapidly edit files.


next up previous
Next: Text files and editors: Up: Introduction to the Linux Previous: Text files
Phil Hasnip 2007-08-23