File: test-next.vim

package info (click to toggle)
vim-vimtex 2.17-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,844 kB
  • sloc: makefile: 360; python: 103
file content (20 lines) | stat: -rw-r--r-- 341 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on

nnoremap q :qall!<cr>

silent edit test-next.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()