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,10 @@
.PHONY: test
MYVIM ?= nvim --clean --headless
test:
@INMAKE=1 $(MYVIM) -u bibspeed.vim
@INMAKE=1 BACKEND=vim $(MYVIM) -u bibspeed.vim
@#INMAKE=1 BACKEND=bibparse $(MYVIM) -u bibspeed.vim
@#INMAKE=1 BACKEND=bibtexparser $(MYVIM) -u bibspeed.vim
@rm -f nvim_servernames.log

View File

@@ -0,0 +1,18 @@
\documentclass{article}
% \usepackage[square,sort,comma,numbers]{natbib}
\usepackage{biblatex}
\addbibresource{../common/huge.bib}
\addbibresource{../common/local1.bib}
\addbibresource{../common/local2.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
Hello World!~\cite{AndersonHowCanHuman2009}
% \bibliographystyle{elsarticle-num}
% \bibliography{../common/huge.bib,../common/local1.bib,../common/local2.bib,biblatex-examples.bib}
\printbibliography
\end{document}

View File

@@ -0,0 +1,38 @@
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 bibspeed.tex
if empty($INMAKE) | finish | endif
normal! 10G
" execute 'profile start' 'bibspeed-' . g:vimtex_parser_bib_backend . '.log'
" profile func *
let s:time = vimtex#profile#time()
silent call vimtex#test#completion('\cite{', '')
echo 'Backend:' toupper(g:vimtex_parser_bib_backend)
let s:time = vimtex#profile#time(s:time, 'Time elapsed (1st run)')
" profile pause
call vimtex#test#completion('\cite{', '')
let s:time = vimtex#profile#time(s:time, 'Time elapsed (2nd run)')
let s:candidates = vimtex#test#completion('\cite{', '')
let s:time = vimtex#profile#time(s:time, 'Time elapsed (3rd run)')
echo 'Number of candidates:' len(s:candidates)
echo "\n"
quit!