I broke up with neovim....vim is my best friend now

This commit is contained in:
LinlyBoi
2023-04-30 08:14:07 +03:00
parent 0d185449c5
commit 4a4a6b1e81
5245 changed files with 468325 additions and 25 deletions

View File

@@ -0,0 +1,42 @@
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
nnoremap q :qall!<cr>
let g:vimtex_cache_root = '.'
let g:vimtex_cache_persistent = 0
if !empty($BACKEND)
let g:vimtex_parser_bib_backend = $BACKEND
endif
silent edit test_backend.tex
if empty($INMAKE) | finish | endif
" Simplify test on basic systems
if empty(vimtex#kpsewhich#find('biblatex-examples.bib'))
let s:candidates = vimtex#test#completion('\cite{', '')
call assert_true(len(s:candidates) >= 1)
call vimtex#test#finished()
quit!
endif
let s:candidates = vimtex#test#completion('\cite{', '')
call assert_equal(94, len(s:candidates))
let s:candidates = vimtex#test#completion('\citet{', '.*ocal')
call assert_equal(2, len(s:candidates))
let s:candidates = vimtex#test#completion(
\ '\parencite[see][5--10]{', 'Arist.*1929')
call assert_equal(1, len(s:candidates))
call assert_equal('aristotle:physics', s:candidates[0].word)
let g:vimtex_complete_bib.simple = 1
let s:candidates = vimtex#test#completion('\textcite[5--10]{', 'aristotle:p')
call assert_equal(2, len(s:candidates))
call assert_equal('aristotle:physics', s:candidates[0].word)
call vimtex#test#finished()