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'