File: test-indent.vim

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (23 lines) | stat: -rw-r--r-- 476 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
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on

set nomore

nnoremap q :qall!<cr>

let g:vimtex_toc_config = {'indent_levels': 1, 'hotkeys_enabled': 1}

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[8])

call assert_equal('L1 [an]   2.1 The first section', getline('$'))

call vimtex#test#finished()