POSIX Topics | POSIX Utility Descriptions | Previous
VI Command Information
Before using vi, you need to customize your environment. Some of the environment variables that you need to set are:
PATH=location of the vi executable
TERM=ansi
TERMCAP=location of termcap equivalent
_POSIX_TERM=on
- The PATH variable needs to include the folder where the vi executable file resides, to be able to run it from anywhere.
- The TERM variable needs to have a value that matches an entry in the TERMCAP file; by default, this entry is named "ansi".
- The TERMCAP variable contains the full path of the termcap file. You should customize the entry in the termcap file according to your typical command prompt window size; if you usually use a window that's not 80 columns by 25 lines, change the co entry to match the number of columns, and change the li entry to match the number of lines. For example, if you normally use a 100 column by 60 line window, the co entry would be "co#100" and the li entry would be "li#60".
- The _POSIX_TERM variable must be set to "on" to use the terminal emulation portion of the POSIX server.