diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 162a75f..e340bb5 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -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'* diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index b3e0fe8..d354718 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -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)