-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
*strip_trailing_whitespace.txt* For Vim version 8.2 | ||
|
||
Removes trailing whitespace from modified lines on save. | ||
|
||
Some filetypes have significant trailing whitespace. An autocommand is | ||
defined in the "strip_trailing_whitespace_filetype" group that sets | ||
|b:strip_trailing_whitespace_enabled| to "0" for Markdown and diff files, and | ||
"1" for other filetypes. To disable: > | ||
autocmd! strip_trailing_whitespace_filetype | ||
============================================================================== | ||
|
||
*:StripTrailingWhitespace* | ||
:[range]StripTrailingWhitespace | ||
Remove trailing whitespace from [range] lines (default all | ||
lines). | ||
|
||
*b:strip_trailing_whitespace_enabled* | ||
b:strip_trailing_whitespace_enabled | ||
Per-buffer boolean toggle. | ||
|
||
*g:strip_trailing_whitespace_max_lines* | ||
g:strip_trailing_whitespace_max_lines | ||
Maximum number of modified lines with trailing whitespace to | ||
keep track of before falling back to stripping the entire | ||
file. | ||
The default ensures the recursion depth limit won't be hit. | ||
|
||
|
||
vim:tw=78:ts=8:noet:ft=help:norl: |