compare.ignoreLeadingBlanks parameter

The compare.ignoreLeadingBlanks parameter may be used to query or set whether differences in the number of blanks at the start of a line are significant when comparing files with the compare command.

Availability

query command
set command

Scope

compare.ignoreLeadingBlanks is scoped to the current view.
current.compare.ignoreLeadingBlanks is scoped to the current view.
default.compare.ignoreLeadingBlanks is globally scoped.
install.compare.ignoreLeadingBlanks is globally scoped.

Syntax

query compare.ignoreLeadingBlanks
set compare.ignoreLeadingBlanks [default | on | off]
query current.compare.ignoreLeadingBlanks
query default.compare.ignoreLeadingBlanks
set default.compare.ignoreLeadingBlanks [install | on | off]
query install.compare.ignoreLeadingBlanks 

Parameters

default If you specify the default parameter for the set compare.ignoreLeadingBlanks command, the current view will use the value of default.compare.ignoreLeadingBlanks to determine if the compare command should ignore blanks at the beginning of the line.
on If you specify the on parameter for the set compare.ignoreLeadingBlanks command, the compare command will ignore the presence of blanks at the beginning of the line for the comparison in the current view.  If you specify the on parameter for the set default.compare.ignoreLeadingBlanks command, the compare command will ignore the presence of blanks at the beginning of the line for comparisons in any of the document views that have compare.ignoreLeadingBlanks set to default.
off If you specify the off parameter for the set compare.ignoreLeadingBlanks command, the compare command will not ignore the presence of blanks at the beginning of the line for the comparison in the current view.  If you specify the off parameter for the set default.compare.ignoreLeadingBlanks command, the compare command will not ignore the presence of blanks at the beginning of the line for comparisons in any of the document views that have compare.ignoreLeadingBlanks set to default.
install If you specify the install parameter for the set default.compare.ignoreLeadingBlanks command, all of the document views that have compare.ignoreLeadingBlanks set to default will use the value of install.compare.ignoreLeadingBlanks to determine if the compare command should ignore the presence of blanks at the beginning of the line.

Description

The query compare.ignoreLeadingBlanks command will return the leading blank comparison setting that will be used by the compare command.

If you do not specify any of the parameters for the set compare.ignoreLeadingBlanks command, default is assumed.

If you do not specify any of the parameters for the set default.compare.ignoreLeadingBlanks command, install is assumed.

The query current.compare.ignoreLeadingBlanks command will return on if, for the current view, the compare command will ignore blanks at the beginning of the line and off if, for the current view, the compare command will not ignore blanks at the beginning of the line.

Examples

query compare.ignoreLeadingBlanks
set compare.ignoreLeadingBlanks on
query current.compare.ignoreLeadingBlanks
query default.compare.ignoreLeadingBlanks
set default.compare.ignoreLeadingBlanks off
query install.compare.ignoreLeadingBlanks 


compare command
query command
set command
current parameter
default parameter
install parameter
compare.ignoreCase parameter
compare.ignoreTrailingBlanks parameter
compare.ignoreAllBlanks parameter