From 30b551bc582e72f92d480fd987401878640d0bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Mon, 28 Jul 2014 14:54:04 +0200 Subject: [PATCH] Better definition for inner environments --- autoload/latex/motion.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/latex/motion.vim b/autoload/latex/motion.vim index 9d32650..e6845c2 100644 --- a/autoload/latex/motion.vim +++ b/autoload/latex/motion.vim @@ -197,7 +197,7 @@ function! latex#motion#sel_environment(...) " {{{1 if env =~ '^\' call search('\\.\_\s*\S', 'eW') else - call search('}\(\_\s*\[\_[^]]*\]\)\?\_\s*\S', 'eW') + call search('}\(\_\s*\(\[\_[^]]*\]\|{\_\S\{-}}\)\)\?\_\s*\S', 'eW') endif endif if visualmode() ==# 'V'