From 192013e12aeeb4e173b9346c7cedfc448d029590 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Mon, 21 Apr 2008 23:24:38 -0500 Subject: make this regex more exact --- vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrc b/vimrc index b9556b2..cd64033 100644 --- a/vimrc +++ b/vimrc @@ -272,7 +272,7 @@ function Latex_foldtext() " {{{ endif " }}} " format list items nicely {{{ - let matches = matchlist(line, '\\item\%(\[\(.*\)\]\)\?') + let matches = matchlist(line, '\\item\%(\[\([^]]*\)\]\)\?') if !empty(matches) let item_name = [] let item_index = 0 -- cgit v1.2.3-54-g00ecf