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,14 @@
MYVIM ?= nvim --clean --headless
INMAKE := 1
export INMAKE
TESTS := $(wildcard *.vim)
TESTS := $(TESTS:.vim=)
.PHONY: test $(TESTS)
test: $(TESTS)
$(TESTS):
@$(MYVIM) -u $@.vim

View File

@@ -0,0 +1,19 @@
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
set nomore
let s:tree = vimtex#util#tex2tree(
\ '\newlabel{test}{{\textsc {D\''ej\`a vu}\relax }{caption.1}{}}')
call assert_equal(3, len(s:tree))
call assert_equal('\textsc', s:tree[2][0][0])
" Test for #1599: Fail label completion due to tex2unicode
let s:line = vimtex#util#tex2unicode('{\textsc {D\''ej\`a}\relax }')
call assert_equal('{\textsc {Déjà}\relax }', s:line)
let s:str = 'title={Temporary, complete list of references}'
call assert_equal([s:str], vimtex#util#texsplit(s:str))
call vimtex#test#finished()