summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc8
1 files changed, 3 insertions, 5 deletions
diff --git a/vimrc b/vimrc
index 541b438..5bc6a2a 100644
--- a/vimrc
+++ b/vimrc
@@ -171,10 +171,9 @@ function Base_foldtext(...)
let line = substitute(line, '\%( \)\@<= \%( *$\)\@=', '-', 'g')
" format the line count
- let nlines = printf('%13s',
- \ '(' . (v:foldend - v:foldstart + 1) . ' lines) ')
+ let cnt = printf('%13s', '(' . (v:foldend - v:foldstart + 1) . ' lines) ')
- return '+-' . v:folddashes . ' ' . line . nlines
+ return '+-' . v:folddashes . ' ' . line . cnt
endfunction
" }}}
" Latex {{{
@@ -185,8 +184,7 @@ function Latex_foldtext()
" if we get the start of a theorem, format the display nicely
" XXX: allow the label to be on the following line
- let matches = matchlist(line,
- \ '\\begin{\([^}]*\)}.*\\label{\([^}]*\)}')
+ let matches = matchlist(line, '\\begin{\([^}]*\)}.*\\label{\([^}]*\)}')
if !empty(matches) && has_key(s:latex_types, matches[1])
return Base_foldtext(s:latex_types[matches[1]] . ": " . matches[2])
endif