Files
dotfiles/dot_vim/plugged/vimtex/test/test-parser-cmds/test.vim

21 lines
336 B
VimL

set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
nnoremap q :qall!<cr>
silent edit test.tex
if empty($INMAKE) | finish | endif
try
let s:cmd = vimtex#cmd#get_next()
call assert_equal('\begin', s:cmd.name)
catch
echo 'Failed to parse command!'
echo getline('.') "\n"
cquit
endtry
call vimtex#test#finished()