HP-UX Reference (11i v3 07/02) - 1 User Commands N-Z (vol 2)
v
vi(1) vi(1)
contains an invalid setting, the editor behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
WARNINGS
See also the WARNINGS section in ex(1).
Program Limits
vi places the following limits on files being edited.
Maximum Line Length
4096 characters including 2-3 bytes for overhead. Thus, a line length up to 4092 characters should cause
no problem.
If you load a file that contain lines longer than the specified limit, the lines are truncated to the stated max-
imum length. Saving the file will write the truncated version over the original file, thus overwriting the
original lines completely.
Attempting to create lines longer than the allowable maximum for the editor produces a line too
long
error message.
Maximum File Size
The maximum file length of 234,239 lines is silently enforced.
Other limits
• 256 characters per global command list.
• 128 characters in a file name in vi or ex open mode. On short-file-name HP-UX systems, the
maximum file name length is 14 characters.
• 128 characters in a previous insert/delete buffer.
• 100 characters in a shell-escape command.
• 63 characters in a string-valued option (
:set command).
• 30 characters in a program tag name.
• 32 or fewer macros defined by
map command.
• 512 or fewer characters total in combined map macros.
Do not use the -C option to edit unencrypted files. The -C option is meant to be used only on files that are
already encrypted. If the -C option is used on files which are not yet encrypted, a write in the edit session
is likely to corrupt the file.
AUTHOR
vi was developed by the University of California, Berkeley. The 16-bit extensions to vi are based in part
on software of the Toshiba Corporation.
SEE ALSO
ctags(1), ed(1), ex(1), stty(1), write(1), terminfo(4), environ(5), lang(5), regexp(5), standards(5).
The Ultimate Guide to the vi and ex Text Editors, Benjamin/Cummings Publishing Company, Inc., ISBN 0-
8053-4460-8, HP part number 97005-90015.
STANDARDS CONFORMANCE
vi: SVID2, SVID3, XPG2, XPG3, XPG4
400 Hewlett-Packard Company − 10 − HP-UX 11i Version 3: February 2007