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:
Martin Grenfell 2011-02-22 11:28:35 +13:00
parent 63b252ad40
commit 94cce2cc54
2 changed files with 2 additions and 4 deletions

View File

@ -597,7 +597,7 @@ It will not be uncommented if the NERDRemoveAltComs is set to 0.
------------------------------------------------------------------------------
*'NERDRemoveExtraSpaces'*
Values: 0 or 1.
Default: 1.
Default: 0.
By default, the NERD commenter will remove spaces around comment delimiters if
either:
@ -620,8 +620,6 @@ Otherwise they would become: >
int bar = 10;
int baz = foo + bar
<
If you want the spaces to be removed only if |'NERDSpaceDelims'| is set then
set NERDRemoveExtraSpaces to 0.
------------------------------------------------------------------------------
*'NERDLPlace'*

View File

@ -58,7 +58,7 @@ call s:InitVariable("g:NERDMenuMode", 3)
call s:InitVariable("g:NERDLPlace", "[>")
call s:InitVariable("g:NERDUsePlaceHolders", 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:NERDSpaceDelims", 0)