File: test1.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 (22 lines) | stat: -rw-r--r-- 554 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
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on

nnoremap q :qall!<cr>

let g:vimtex_cache_root = '.'
let g:vimtex_cache_persistent = 0

silent edit test1.tex

if empty($INMAKE) | finish | endif

" Candidates from \newenvironment
let s:candidates = vimtex#test#completion('\begin{', 'test')
call assert_equal(s:candidates[0].word, 'testnewenvironment')

" Candidates from package (align from amsmath)
let s:candidates = vimtex#test#completion('\begin{', 'ali')
call assert_equal(s:candidates[0].word, 'align')

call vimtex#test#finished()