summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-04-20 22:24:43 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-04-20 22:24:43 -0500
commit8143a1e02da1081bb36e3f50312e9a15e800c25f (patch)
treef247fa002da98ada79a23ec46990a230b6bf5021
parent92afbfb3ae8e1a8824417289c17e47939083ccee (diff)
downloadvim-foldtext-8143a1e02da1081bb36e3f50312e9a15e800c25f.tar.gz
vim-foldtext-8143a1e02da1081bb36e3f50312e9a15e800c25f.zip
checking for surrounding whitespace isn't necessary, since we strip the front and back afterwards
-rw-r--r--vimrc2
1 files changed, 1 insertions, 1 deletions
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')