Better definition for inner environments

This commit is contained in:
Karl Yngve Lervåg 2014-07-28 14:54:04 +02:00
parent 28f7120eab
commit 30b551bc58

View File

@ -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'