December 2002
Intermediate to advanced
1616 pages
39h 57m
English
The vim editor reads a disk file into the Work buffer when you call vim from the shell. The ZZ command that terminates the editing session writes the contents of the Work buffer back to the disk file. This section discusses other ways of reading text into the Work buffer and writing it out.
The Read command reads a file into the Work buffer. The new file does not overwrite any text in the Work buffer but is positioned following the single address you specify (or the current line if you do not specify an address). You can use an address of 0 to read the file into the beginning of the Work buffer. The format of the Read command is
:[address]r [filename]
As with other commands that begin with a colon, when ...
Read now
Unlock full access