I broke up with neovim....vim is my best friend now
This commit is contained in:
21
dot_vim/plugged/vimtex/test/test-toc/test-texorpdfstring.vim
Normal file
21
dot_vim/plugged/vimtex/test/test-toc/test-texorpdfstring.vim
Normal file
@@ -0,0 +1,21 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
set nomore
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
silent edit main.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
let s:toc = vimtex#toc#get_entries()
|
||||
|
||||
let b:vimtex.toc.number_width = 4
|
||||
let b:vimtex.toc.number_format = '%-4s'
|
||||
call b:vimtex.toc.print_entry(s:toc[14])
|
||||
|
||||
call assert_equal('L1 3.1 $L^p$ spaces', getline('$'))
|
||||
|
||||
call vimtex#test#finished()
|
||||
Reference in New Issue
Block a user