https://github.com/itspriddle/vim-stripper
Strip trailing whitespace in Vim.
https://github.com/itspriddle/vim-stripper
Last synced: about 1 year ago
JSON representation
Strip trailing whitespace in Vim.
- Host: GitHub
- URL: https://github.com/itspriddle/vim-stripper
- Owner: itspriddle
- Created: 2011-07-14T12:48:57.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T17:14:16.000Z (over 4 years ago)
- Last Synced: 2025-03-29T22:17:01.843Z (about 1 year ago)
- Language: Vim script
- Homepage:
- Size: 11.7 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# stripper.vim
`stripper.vim` won't get naked for you, but it will strip trailing whitespace.
## Overview
`stripper.vim` adds the `:Stripper` command, which will strip trailing
whitespace from your files. By default, all files but Markdown and Liquid are
stripped when a buffer is saved. This behavior is configurable. See
`:help stripper` for more info.
While editing a document, you can use the command `:Stripper` to strip
whitespace manually.
Strip all whitespace in the current buffer:
:Stripper
Strip whitespace on lines 3-5 of the current buffer:
:3,5Stripper
You can also strip whitespace on selected text in visual mode.
## License
Same as Vim itself, see `:help license`.