Add option to allow deleting trailing whitespace (#251)

Add option g:NERDTrimTrailingWhitespace to allow deleting trailing
whitespace when uncommenting a line.
This commit is contained in:
Alexandre Constantino
2016-06-10 15:49:17 +01:00
committed by Caleb Maclennan
parent e1aeec12be
commit e2d47bec26
3 changed files with 34 additions and 1 deletions

View File

@@ -478,6 +478,9 @@ change the filetype back: >
whether to remove them when
uncommenting.
|'NERDTrimTrailingWhitespace'| Specifies if trailing whitespace
should be deleted when uncommenting.
|'NERDCompactSexyComs'| Specifies whether to use the compact
style sexy comments.
@@ -749,6 +752,15 @@ If you want spaces to be added then set NERDSpaceDelims to 1 in your vimrc.
See also |'NERDRemoveExtraSpaces'|.
------------------------------------------------------------------------------
*'NERDTrimTrailingWhitespace'*
Values: 0 or 1.
Default 0.
When uncommenting an empty line some whitespace may be left as a result of
alignment padding. With this option enabled any trailing whitespace will be
deleted when uncommenting a line.
------------------------------------------------------------------------------
*'NERDDefaultAlign'*
Values: 'none', 'left', 'start', 'both'