File: test-markers.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 (28 lines) | stat: -rw-r--r-- 522 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on

set fillchars=fold:\ 
set number
set foldcolumn=4

nnoremap q :qall!<cr>

call vimtex#log#set_silent()

let g:vimtex_fold_enabled = 1

silent edit test-markers.tex

if empty($INMAKE) | finish | endif

call assert_equal(0, foldlevel(4))
call assert_equal(1, foldlevel(7))
call assert_equal(0, foldlevel(12))

let g:vimtex_fold_types = {'markers': {'open': '<<:', 'close': ':>>'}}
VimtexReload

call assert_equal(1, foldlevel(12))

call vimtex#test#finished()