I broke up with neovim....vim is my best friend now
This commit is contained in:
20
dot_vim/plugged/vimtex/test/test-parser-cmds/test.vim
Normal file
20
dot_vim/plugged/vimtex/test/test-parser-cmds/test.vim
Normal file
@@ -0,0 +1,20 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user