
746
|
Chapter 9: The vi, ex, and vim Editors
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
next
num[!] [[+num] filelist]
Edit the next file from the command-line argument list. Use args to
list these files. If filelist is provided, replace the current argument
list with filelist and begin editing on the first file. With the +num
argument, begin editing on line num.Ornum may be a pattern, of
the form /pattern.
Example
:n chap* Start editing all "chapter" files
nohlsearch
noh
Temporarily stop highlighting all matches to a search when using
the hlsearch option. Highlighting is resumed with the next search.
{vim}
number
[address] nu [count]
Print each line specified by address, preceded by its buffer line
number. Use # as an alternate abbreviation for number. count
specifies the number of lines to show, starting with address.
only
on [!]
Make the current window be the only one on the screen. Windows
open on modified buffers are not removed from the screen
(hidden), unless you also use the ! character. {vim}
open
[address] o [/pattern/]
Enter open mode (vi) at the lines specified by address,oratthe
lines matching pattern. Exit open mode with Q. Open mode lets
you use the regular vi commands, but only one line at a time. It can
be useful on slow dial-up lines (or on very distant Internet ssh
connections).
preserve
pre
Save the current editor buffer as