File: test-envs.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 (89 lines) | stat: -rw-r--r-- 2,185 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
syntax on

setfiletype tex

call vimtex#test#keys('die',
      \ [
      \  '\begin{complexenvironment}[option1,',
      \  '  option2]{first extra argument}',
      \  '  {second extra',
      \  '  argument}',
      \  '  Hello world!',
      \  '\end{complexenvironment}',
      \ ], [
      \  '\begin{complexenvironment}[option1,',
      \  '  option2]{first extra argument}',
      \  '  {second extra',
      \  '  argument}',
      \  '\end{complexenvironment}',
      \ ])

call vimtex#test#keys('die',
      \ [
      \  '\begin{complexenvironment}[option1,',
      \  '  option2]{first extra argument}',
      \  '',
      \  '  {second extra',
      \  '  argument}',
      \  '  Hello world!',
      \  '\end{complexenvironment}',
      \ ], [
      \  '\begin{complexenvironment}[option1,',
      \  '  option2]{first extra argument}',
      \  '\end{complexenvironment}',
      \ ])

call vimtex#test#keys('dae',
      \ [
      \  '\begin{complexenvironment}[option1,',
      \  '  option2]{first extra argument}',
      \  '  {second extra',
      \  '  argument}',
      \  '  Hello world!',
      \  '\end{complexenvironment}',
      \ ], [''])

call vimtex#test#keys('4j$d2ae',
      \ [
      \   '\begin{document}',
      \   '  \begin{center}',
      \   '      \begin{align}',
      \   '        a = b',
      \   '      \end{align}',
      \   '  \end{center}',
      \   '\end{document}',
      \ ],
      \ [
      \   '\begin{document}',
      \   '  ',
      \   '\end{document}',
      \ ])

" call vimtex#test#keys('3jdie',
"       \ [
"       \   '\begin{minted}',
"       \   '  {',
"       \   '    "contacts": [',
"       \   '      {',
"       \   '        "source_id": "mandatory"',
"       \   '      }',
"       \   '    ]',
"       \   '  }',
"       \   '\end{minted}',
"       \ ],
"       \ [
"       \   '\begin{minted}',
"       \   '  {',
"       \   '    "contacts": [',
"       \   '      {',
"       \   '        "source_id": "mandatory"',
"       \   '      }',
"       \   '    ]',
"       \   '  }',
"       \   '\end{minted}',
"       \ ])

call vimtex#test#finished()