diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-05-07 05:04:01 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-05-07 05:04:01 -0500 |
commit | dfdbc19ddc951a93c8c24a9eb87b03a8600d00cb (patch) | |
tree | 5faf8649572250a727d4d05733c7321738e99ae8 /vim/plugin/foldtext.vim | |
parent | b59ac7f05d8d157546a2264620cd1884b677320c (diff) | |
download | vim-foldtext-dfdbc19ddc951a93c8c24a9eb87b03a8600d00cb.tar.gz vim-foldtext-dfdbc19ddc951a93c8c24a9eb87b03a8600d00cb.zip |
strip out the explicit foldlevel markers as well
Diffstat (limited to 'vim/plugin/foldtext.vim')
-rw-r--r-- | vim/plugin/foldtext.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/plugin/foldtext.vim b/vim/plugin/foldtext.vim index f6fad9a..728b822 100644 --- a/vim/plugin/foldtext.vim +++ b/vim/plugin/foldtext.vim @@ -9,7 +9,7 @@ function Foldtext_base(...) " }}} " remove the marker that caused this fold from the display {{{ let foldmarkers = split(&foldmarker, ',') - let line = substitute(line, '\V' . foldmarkers[0], ' ', '') + let line = substitute(line, '\V' . foldmarkers[0] . '\%(\d\+\)\?', ' ', '') " }}} " remove comments that vim knows about {{{ let comment = split(&commentstring, '%s') |