The Basics of vi
Updated: 11/03/2004
General Information
Right then, vi. "Oh no! vi! That's command based, can't use that!" Oh come on, it's not that difficult! Really... First, I shall explain a little about vi. vi (now mostly vim) is one of the oldest text editors for *nix. It can be found on many systems, both UNIX and Linux, and is usually the default editor. vim (VI iMproved) is beginning to take over from the older vi, but essentially, they function the same way.Requirements
vi
To open vi, you simply typevi at your prompt. To open a file with vi, just type vi followed by the filename, e.g. vi configure.txt.|
:w Write changes to disk and continue editing. :wq Write changes to disk and exit. :q! Exit without saving changes. /text Find text in the file. G Go to the end of the file. nG Go to line n. x Delete character that the cursor is on. dd Delete line (even if it wraps). i Insert text at cursor. a Insert text after cursor. |
|
Ctrl+F Forward one page. Ctrl+B Back one page. |
This guide is © 2004 - 2009 configure.
Author: configure
configure at dteq dot org