
738
|
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.
Sample .exrc File
The following lines of code are an example of a customized .exrc file:
set nowrapscan " Searches don't wrap at end of file
set wrapmargin=7 " Wrap text at 7 columns from right margin
showmode noshowmode In insert mode, display a message on the prompt line indi-
cating the type of insert you are making. For example, “OPEN
MODE” or “APPEND MODE.”
slowopen (slow) Hold off display during insert. Default depends on line speed
and terminal type.
smartcase (scs) nosmartcase Override the ignorecase option when a search pattern
contains uppercase characters. {vim}
tabstop= (ts) 8 Define number of spacesa tab indents during editingsession.
(Printer still uses system tab of 8.)
taglength= (tl) 0 Define number of characters that are significant for tags.
Default (zero) means that all characters are significant.
tags= tags /usr/lib/tags Define pathname of filescontaining tags. (See the Unix ctags
command.) (Bydefault, vi searchesthe file tagsin the current
directory and /usr/lib/tags.)
tagstack tagstack Enable stacking of tag locations on a stack. (Solaris vi and
vim.)
term= Set terminal type.
terse noterse Display shorter error messages.
textwidth= (tw) 0 The maximum width of text to be inserted; longer lines are
broken after whitespace. Default ...