summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc11
1 files changed, 3 insertions, 8 deletions
diff --git a/vimrc b/vimrc
index dbc78c3..4559c59 100644
--- a/vimrc
+++ b/vimrc
@@ -272,17 +272,12 @@ function Latex_foldtext() " {{{
endif
" }}}
" format list items nicely {{{
- let matches = matchlist(line, '\\item\%(\[\([^]]*\)\]\)\?')
- if !empty(matches)
- if matches[1] == ''
- let item_name = [0]
- else
- let item_name = [matches[1]]
- endif
+ if line =~ '\\item'
+ let item_name = []
let item_depth = 0
let nesting = 0
let type = ''
- for linenum in range(v:foldstart - 1, 0, -1)
+ for linenum in range(v:foldstart, 0, -1)
let line = getline(linenum)
if line =~ '\\item'
if nesting == 0