27 Commits

Author SHA1 Message Date
Ingo Karkat a034047308 Documentation: Minor: Mention vim-strip-trailing-whitespace plugin 2024-11-09 10:15:44 +01:00
Ingo Karkat 6daaeae5ff Release 1.10 2020-02-03 13:42:19 +01:00
Ingo Karkat 424b77bec4 BUG: DeleteTrailingWhitespace_Action checks window-local instead of buffer-local override
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.
2020-02-02 14:06:26 +01:00
Ingo Karkat 58d5569fa3 Add Readme and gitignore 2019-02-10 18:36:58 +01:00
Ingo Karkat 3b70fbf627 Documentation: Update changelog
- 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.
2019-02-10 18:32:42 +01:00
Ingo Karkat 1bdffc0edc Documentation: Update changelog
- ENH: Add "Forever" and "Never ever" choices that persist the response for
  the current file across Vim session.
2019-02-10 18:32:37 +01:00
Ingo Karkat 6a9c03d38a Documentation: Update changelog
- 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)! ***
2019-02-10 18:32:34 +01:00
Ingo Karkat f1bf235c43 2019-02-10 18:32:18 +01:00
Ingo Karkat a221f34f31 2019-02-10 18:32:16 +01:00
Ingo Karkat 7af38be650 2019-02-10 18:32:16 +01:00
Ingo Karkat bd4768a4d9 Documentation: Update changelog
- FIX: Warning for nomodifiable buffer does not consider buffer-local
  b:DeleteTrailingWhitespace_Action (after version 1.05).
2019-02-10 18:32:13 +01:00
Ingo Karkat 4eb66acdd8 2019-02-10 18:32:13 +01:00
Ingo Karkat b21dfcbaaf Documentation: Update changelog
- 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.
2019-02-10 18:31:59 +01:00
Ingo Karkat 31d515478e 2019-02-10 18:31:54 +01:00
Ingo Karkat 7d36f1dca4 2019-02-10 18:31:51 +01:00
Ingo Karkat dabdd4f350 Documentation: Update changelog
- Handle local exception regular expressions that contain a "/" character.
  This must be escaped for the :substitute/ command.
2019-02-10 18:31:48 +01:00
Ingo Karkat 9f29ec50ce Documentation: Update changelog
- Minor: Make substitute() robust against 'ignorecase'.
- Minor: Correct lnum for no-modifiable buffer check.
2019-02-10 18:31:45 +01:00
Ingo Karkat ac5828c52c 2019-02-10 18:31:31 +01:00
Ingo Karkat 34a390fca6 2019-02-10 18:31:31 +01:00
Ingo Karkat e1a889c6d3 Documentation: Update changelog
Handle readonly and nomodifiable buffers by printing just the warning / error,
without the multi-line function error.
2019-02-10 18:31:25 +01:00
Ingo Karkat bfe127bbe4 Documentation: Update changelog
FIX: Avoid polluting search history.
2019-02-10 18:31:19 +01:00
Ingo Karkat 5941148592 Documentation: Update changelog
Define command with -bar so that it can be chained.
2019-02-10 18:31:16 +01:00
Ingo Karkat daf01fa91a 2019-02-10 18:31:11 +01:00
Ingo Karkat 544e9193e6 2019-02-10 18:31:11 +01:00
Ingo Karkat 3998330b8e 2019-02-10 18:31:08 +01:00
Ingo Karkat 7730ea7d1e 2019-02-10 18:30:59 +01:00
Ingo Karkat d83fc2a084 file creation 2019-02-10 18:30:59 +01:00