summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-04-20 22:50:13 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-04-20 22:50:13 -0500
commitf4bdc5170b903c73bce6fcb74c384387b3662b17 (patch)
treef134b57f8ee98d55e826b24abec9a91ae8fd0830
parenta21f697209dee1a037f4e79cb7702a3b634c304d (diff)
downloadvim-foldtext-f4bdc5170b903c73bce6fcb74c384387b3662b17.tar.gz
vim-foldtext-f4bdc5170b903c73bce6fcb74c384387b3662b17.zip
formatting
-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