The compare.ignoreTrailingBlanks parameter may be used to query or set whether differences in the number of blanks at the end of a line are significant when comparing files with the compare command.
query command
set command
compare.ignoreTrailingBlanks is scoped to the current view.
current.compare.ignoreTrailingBlanks is scoped to the current view.
default.compare.ignoreTrailingBlanks is globally scoped.
install.compare.ignoreTrailingBlanks is globally scoped.
query compare.ignoreTrailingBlanks set compare.ignoreTrailingBlanks [default | on | off] query current.compare.ignoreTrailingBlanks query default.compare.ignoreTrailingBlanks set default.compare.ignoreTrailingBlanks [install | on | off] query install.compare.ignoreTrailingBlanks
default | If you specify the default parameter for the set compare.ignoreTrailingBlanks command, the current view will use the value of default.compare.ignoreTrailingBlanks to determine if the compare command should ignore blanks at the end of the line. |
on | If you specify the on parameter for the set compare.ignoreTrailingBlanks command, the compare command will ignore the presence of blanks at the end of the line for the comparison in the current view. If you specify the on parameter for the set default.compare.ignoreTrailingBlanks command, the compare command will ignore the presence of blanks at the end of the line for comparisons in any of the document views that have compare.ignoreTrailingBlanks set to default. |
off | If you specify the off parameter for the set compare.ignoreTrailingBlanks command, the compare command will not ignore the presence of blanks at the end of the line for the comparison in the current view. If you specify the off parameter for the set default.compare.ignoreTrailingBlanks command, the compare command will not ignore the presence of blanks at the end of the line for comparisons in any of the document views that have compare.ignoreTrailingBlanks set to default. |
install | If you specify the install parameter for the set default.compare.ignoreTrailingBlanks command, all of the document views that have compare.ignoreTrailingBlanks set to default will use the value of install.compare.ignoreTrailingBlanks to determine if the compare command should ignore the presence of blanks at the end of the line. |
The query compare.ignoreTrailingBlanks command will return the trailing blank comparison setting that will be used by the compare command.
If you do not specify any of the parameters for the set compare.ignoreTrailingBlanks command, default is assumed.
If you do not specify any of the parameters for the set default.compare.ignoreTrailingBlanks command, install is assumed.
The query current.compare.ignoreTrailingBlanks command will return on if, for the current view, the compare command will ignore blanks at the end of the line, and off if, for the current view, the compare command will not ignore blanks at the end of the line.
query compare.ignoreTrailingBlanks set compare.ignoreTrailingBlanks on query current.compare.ignoreTrailingBlanks query default.compare.ignoreTrailingBlanks set default.compare.ignoreTrailingBlanks off query install.compare.ignoreTrailingBlanks
compare command
query command
set command
current parameter
default parameter
install parameter
compare.ignoreCase parameter
compare.ignoreLeadingBlanks parameter
compare.ignoreAllBlanks parameter