From 8143a1e02da1081bb36e3f50312e9a15e800c25f Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Sun, 20 Apr 2008 22:24:43 -0500 Subject: checking for surrounding whitespace isn't necessary, since we strip the front and back afterwards --- vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrc b/vimrc index efc3550..22d65e5 100644 --- a/vimrc +++ b/vimrc @@ -294,7 +294,7 @@ function Base_foldtext(...) " remove the marker that caused this fold from the display let foldmarkers = split(&foldmarker, ',') - let line = substitute(line, '\V\s\?' . foldmarkers[0] . '\s\?', ' ', '') + let line = substitute(line, '\V' . foldmarkers[0], ' ', '') " remove comments that we know about let comment = split(&commentstring, '%s') -- cgit v1.2.3-54-g00ecf