mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 18:03:46 -05:00
make NERDRemoveExtraSpaces default to 0
this was causing problems with people who were using left aligned comments without NERDSpaceDelims set as it was incorrectly stripping out extra spaces
This commit is contained in:
@@ -597,7 +597,7 @@ It will not be uncommented if the NERDRemoveAltComs is set to 0.
|
|||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
*'NERDRemoveExtraSpaces'*
|
*'NERDRemoveExtraSpaces'*
|
||||||
Values: 0 or 1.
|
Values: 0 or 1.
|
||||||
Default: 1.
|
Default: 0.
|
||||||
|
|
||||||
By default, the NERD commenter will remove spaces around comment delimiters if
|
By default, the NERD commenter will remove spaces around comment delimiters if
|
||||||
either:
|
either:
|
||||||
@@ -620,8 +620,6 @@ Otherwise they would become: >
|
|||||||
int bar = 10;
|
int bar = 10;
|
||||||
int baz = foo + bar
|
int baz = foo + bar
|
||||||
<
|
<
|
||||||
If you want the spaces to be removed only if |'NERDSpaceDelims'| is set then
|
|
||||||
set NERDRemoveExtraSpaces to 0.
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
*'NERDLPlace'*
|
*'NERDLPlace'*
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ call s:InitVariable("g:NERDMenuMode", 3)
|
|||||||
call s:InitVariable("g:NERDLPlace", "[>")
|
call s:InitVariable("g:NERDLPlace", "[>")
|
||||||
call s:InitVariable("g:NERDUsePlaceHolders", 1)
|
call s:InitVariable("g:NERDUsePlaceHolders", 1)
|
||||||
call s:InitVariable("g:NERDRemoveAltComs", 1)
|
call s:InitVariable("g:NERDRemoveAltComs", 1)
|
||||||
call s:InitVariable("g:NERDRemoveExtraSpaces", 1)
|
call s:InitVariable("g:NERDRemoveExtraSpaces", 0)
|
||||||
call s:InitVariable("g:NERDRPlace", "<]")
|
call s:InitVariable("g:NERDRPlace", "<]")
|
||||||
call s:InitVariable("g:NERDSpaceDelims", 0)
|
call s:InitVariable("g:NERDSpaceDelims", 0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user