useSourceColumns parameter
Use the useSourceColumns parameter to set of query whether the editor uses column characteristics of the file in its source character encoding.
Availability
query command
set command
current parameter
default parameter
install parameter
Scope
useSourceColumns is scoped to the current document.
current.useSourceColumns is scoped to the current document.
default.useSourceColumns is globally scoped.
install.useSourceColumns is globally scoped.
Syntax
query useSourceColumns set useSourceColumns [ default | on | off ] query current.useSourceColumns query default.useSourceColumns set default.useSourceColumns [ install | on | off ] query install.useSourceColumns
Parameters
default If you specify the default parameter for the set useSourceColumns command, the current document will use the value of default.useSourceColumns. on If you specify the on parameter for the set useSourceColumns command, the current document will use column characteristics of the file in its source encoding. If you specify the on parameter for the set default.useSourceColumns command, all documents that have useSourceColumns set to default will use column characteristics of the file in its source encoding. off If you specify the off parameter for the set useSourceColumns command, the current document will use column characteristics of the file in its Unicode encoding. If you specify the off parameter for the set default.useSourceColumns command, all documents that have useSourceColumns set to default will use column characteristics of the files in their Unicode encoding. install If you specify the install parameter for the set default.useSourceColumns command, all of the documents that have useSourceColumns set to default will use the value of install.useSourceColumns.
Description
By default, column-related editor settings are in terms of Unicode characters. The useSourceColumns parameter changes this to bytes for DBCS/MBCS (double-byte/multibyte character set) source character encodings, in order to better emulate the editing of host files in their native environment. If the source encoding of the file is not DBCS/MBCS, this parameter has no effect. The following editor settings may be affected by the value of the useSourceColumns parameter:
- the displayPosition parameter
- the fields parameter
- the save.textLimit parameter
- the sequenceNumbers parameter
- the "Column" field displayed on the status line
- the current position displayed on the format line
- tabs expansion.
Examples
query useSourceColumns set useSourceColumns off query current.useSourceColumns query default.useSourceColumns set default.useSourceColumns off query install.useSourceColumns
query command
set command
current parameter
default parameter
install parameter
fields parameter
displayPosition parameter
save.textLimit parameter
sequenceNumbers parameter
sourceEncoding parameter