Expands tab characters found in a file to spaces for viewing purposes.
Scope: View
Syntax
query expandtabs
set expandtabs { on | off | inverse }
Options
on |
Tab characters found in a file will be expanded to spaces for viewing purposes. |
off |
Tab characters are displayed as is. |
inverse |
Toggles the value of the parameter between on and off. |
Description
The expandtabs parameter controls how tabs are displayed in the Editor. If the expandtabs parameter is set to on, tab characters in the file will be expanded to spaces, according to the value of the tabs parameter, for viewing purposes only.
Tab characters in a file are not changed by the expandtabs parameter. If, however, the file is saved with the asshown option, tab characters are expanded to spaces in the saved file.
The expandtabs parameter is affected by the preserve, reset, and restore commands.
Example
To expand tab characters to spaces in the current file view, type:
set expandtabs on
API Return Codes
-2 |
Invalid parameter argument given. |
![]()
preserve Command
reset Command
restore Command
save Command
tabcursorpos Parameter
tabs Parameter
