SET TABS
Sets tab stops for the current buffer (AT or EVERY) or the tab modes
(INSERT, MOVEMENT, or SPACES, INVISIBLE, or VISIBLE).
Examples:
Command Purpose or Effect
---------------------------------------------------------------------
SET TABS AT 9 18 36 Sets tab stops at columns 9, 18, and 36. Values
must be in ascending order, separated by spaces.
SET TABS EVERY 8 (Default setting.) Sets tab stops every eight
columns.
SET TABS VISIBLE Makes tab characters visible, and makes TAB
SET TABS SPACES insert spaces rather than a tab character.
SET TABS INVISIBLE (Default settings.) Tab characters appear as
SET TABS INSERT blank space, and TAB inserts a tab character.
o Setting tab stops changes existing tabs for the current buffer. Tab
stops are independent of the hardware settings of your terminal. To
find out the current tab stops, use the SHOW command or with the WPS
keypad, press the WPS Ruler key (GOLD-R).
o At startup, SET TABS AT or EVERY in an initialization file applies to a
system buffer named $DEFAULTS$, so that each buffer you create has the
same settings. See help on Defaults.
o To set tab modes, use SET TABS and specify one of the following
keywords per command:
Keyword Effects
---------------------------------------------------------------------
INSERT (Default setting.) TAB inserts a tab character, moving
the cursor and any existing text to the right.
MOVEMENT TAB moves the cursor to the next tab stop, but does NOT
move existing text or insert a tab character. This is
useful for moving the cursor several spaces at a time or
across tab-aligned columns or lists.
SPACES TAB inserts spaces instead of a tab character, moving the
cursor and existing text to the next tab stop. (You can
erase the spaces to adjust the placement of text.) This is
useful when the text will be printed or displayed on
devices with different tab stops.
INVISIBLE (Default setting.) Tab characters appear as blank space.
VISIBLE Tab characters appear as a small HT (horizontal tab).
o Tab modes are global settings, affecting all buffers. INSERT, SPACES,
and MOVEMENT do not affect existing tabs entered in a different mode.
For example, the SET TABS SPACES command does NOT convert tab
characters to spaces.
Note: Remember that on printers or terminals with different tab stops
from those you specified, tab-aligned text may not appear the same
as during editing unless you used SET TABS SPACES.
Related topics:
DEFAULTS SHOW TAB