Fixed #593: Autocmd conflicts

This commit is contained in:
Karl Yngve Lervåg 2016-10-19 13:15:30 +02:00
parent ab9087a8a1
commit 5446d04d2e

View File

@ -49,10 +49,10 @@ function! vimtex#motion#init_buffer() " {{{1
" Highlight matching delimiters ($, (), ...)
if g:vimtex_motion_matchparen
augroup vimtex_motion
execute 'augroup vimtex_motion' . bufnr('%')
autocmd!
autocmd! CursorMoved <buffer> call s:highlight_matching_pair()
autocmd! CursorMovedI <buffer> call s:highlight_matching_pair()
autocmd CursorMoved <buffer> call s:highlight_matching_pair()
autocmd CursorMovedI <buffer> call s:highlight_matching_pair()
augroup END
endif