This was meant to allow project- or file-specific overrides (e.g. via a localrc plugin). Having two windows showing the same buffer with different behavior doesn't make much sense.
Fixes#1.
- CHG: Make asking for action (instead of aborting) the default action, now
that we offer many more choices, and the whole persistent recall of
responses only works there. It's also more friendly and transparent towards
first-time users of the plugin. To restore the original behavior: >
let g:DeleteTrailingWhitespace_Action = 'abort'
- CHG: g:DeleteTrailingWhitespace_ChoiceAffectsHighlighting now is a List of
possible responses that if missing will keep the highlighting for that
particular response.
- ENH: If ShowTrailingWhitespace.vim (version 1.10 or higher) is installed,
offer a "Never ever" choice that turns off highlighting for the current
file persistently across Vim sessions.
- Add dependency to ingo-library (vimscript #4433).
*** You need to separately install ingo-library (vimscript #4433) version
1.036 (or higher)! ***
- Corner case: Avoid "E21: Cannot make changes, 'modifiable' is off" on a
nomodifiable buffer when g:DeleteTrailingWhitespace_Action = 'delete', and
instead just show a warning. Thanks to Enno Nagel for raising this issue.