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-multiline.vim
Normal file
21
dot_vim/plugged/vimtex/test/test-toc/test-multiline.vim
Normal file
@@ -0,0 +1,21 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
set foldenable
|
||||
let g:vimtex_fold_enabled = 1
|
||||
|
||||
silent edit test-multiline.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
let s:toc = vimtex#toc#get_entries()
|
||||
call assert_equal(3, len(s:toc))
|
||||
call assert_equal(
|
||||
\ 'This is a really long section title which is hard-wrapped after '
|
||||
\ . '80 characters or so to keep the source code readable',
|
||||
\ s:toc[2].title)
|
||||
|
||||
call vimtex#test#finished()
|
||||
Reference in New Issue
Block a user