Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axelf4/vim-strip-trailing-whitespace
🎞️ Vim plugin that removes trailing whitespace from *modified* lines on save
https://github.com/axelf4/vim-strip-trailing-whitespace
neovim trailing-spaces vim vim-plugin
Last synced: 10 days ago
JSON representation
🎞️ Vim plugin that removes trailing whitespace from *modified* lines on save
- Host: GitHub
- URL: https://github.com/axelf4/vim-strip-trailing-whitespace
- Owner: axelf4
- License: mit
- Created: 2019-12-30T14:42:43.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-01T19:19:43.000Z (almost 3 years ago)
- Last Synced: 2024-10-12T06:09:43.384Z (26 days ago)
- Topics: neovim, trailing-spaces, vim, vim-plugin
- Language: Vim script
- Homepage: https://www.vim.org/scripts/script.php?script_id=5867
- Size: 24.4 KB
- Stars: 71
- Watchers: 6
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-strip-trailing-whitespace
![](https://github.com/axelf4/vim-strip-trailing-whitespace/workflows/test/badge.svg)Vim plugin that removes trailing whitespace
* **from modified lines:** Should not introduce extraneous changes into the diff, even when editing faulty files.
For fixing up the whole file the command `:StripTrailingWhitespace` is provided.
* **on save:** Lines changing under you feet breaks any flow and is a compatibility hazard.
Achieved by maintaining a set of all edited lines with trailing whitespace,
backed by a Splay tree where children store line number offsets.*Vim support: requires Vim 8.2+ or Neovim 0.5+*