From f4bdc5170b903c73bce6fcb74c384387b3662b17 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Sun, 20 Apr 2008 22:50:13 -0500 Subject: formatting --- vimrc | 8 +++----- 1 file 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 -- cgit v1.2.3-54-g00ecf