diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-20 22:50:13 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-20 22:50:13 -0500 |
commit | f4bdc5170b903c73bce6fcb74c384387b3662b17 (patch) | |
tree | f134b57f8ee98d55e826b24abec9a91ae8fd0830 /vimrc | |
parent | a21f697209dee1a037f4e79cb7702a3b634c304d (diff) | |
download | vim-foldtext-f4bdc5170b903c73bce6fcb74c384387b3662b17.tar.gz vim-foldtext-f4bdc5170b903c73bce6fcb74c384387b3662b17.zip |
formatting
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 |