mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-12 19:53:47 -05:00
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:
committed by
Caleb Maclennan
parent
e1aeec12be
commit
e2d47bec26
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user