From 94cce2cc5499de129937670fb10c89dca64fcf49 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Tue, 22 Feb 2011 11:28:35 +1300 Subject: [PATCH] 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 --- doc/NERD_commenter.txt | 4 +--- plugin/NERD_commenter.vim | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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)