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,15 @@
.PHONY: test
MYVIM ?= nvim --clean --headless
INMAKE := 1
export INMAKE
test: output1 output2 output3
@diff output1.tex reference1.tex
@diff output2.tex reference2.tex
@diff output3.tex reference3.tex
@rm -f output*.tex
output%:
@$(MYVIM) -u test.vim

View File

@@ -0,0 +1,5 @@
\newenvironment{LRmath}{
\def\E{}
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{##1}\!\left[##2\right]}
\def\PP{\ensuremath\mathrm{P}}
}{}

View File

@@ -0,0 +1,13 @@
\documentclass[14pt]{article}
\def\E{}
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{#1}\!\left[#2\right]}
\def\PP{\ensuremath\mathrm{P}}
\begin{document}
\begin{equation}
\PP[x\le y] = \E[x]{\max(y-x,0)/(y-x)}
\end{equation}
\end{document}

View File

@@ -0,0 +1,13 @@
\documentclass[12pt]{article}
\newenvironment{LRmath}{
\def\E{}
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{##1}\!\left[##2\right]}
\def\PP{\ensuremath\mathrm{P}}
}{}
\begin{document}
\begin{equation}
\PP[x\le y] = \E[x]{\max(y-x,0)/(y-x)}
\end{equation}
\end{document}

View File

@@ -0,0 +1,18 @@
\documentclass[14pt]{article}
\def\E{}
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{#1}\!\left[#2\right]}
\def\PP{\ensuremath\mathrm{P}}
\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\begin{equation}
\PP[x\le y] = \E[x]{\max(y-x,0)/(y-x)}
\end{equation}
\end{document}

View File

@@ -0,0 +1,16 @@
\documentclass[14pt]{article}
\def\E{}
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{#1}\!\left[#2\right]}
\def\PP{\ensuremath\mathrm{P}}
\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
%%% VIMTEX PLACEHOLDER
\end{document}

View File

@@ -0,0 +1,17 @@
\documentclass[12pt]{article}
\input{inputfile}
\begin{document}
\begin{LRmath}
Text, Text, Text
\begin{equation}
\PP[x\le y] = \E[x]{\max(y-x,0)/(y-x)}
\end{equation}
Text, Text, Text
\end{LRmath}
\end{document}

View File

@@ -0,0 +1,26 @@
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
set nomore
silent edit test.tex
call vimtex#parser#selection_to_texfile({
\ 'range': [10, 12],
\ 'name': 'output1',
\})
call vimtex#parser#selection_to_texfile({
\ 'range': [10, 12],
\ 'name': 'output2',
\ 'template_name': 'NONE',
\})
call vimtex#parser#selection_to_texfile({
\ 'range': [10, 12],
\ 'name': 'output3',
\ 'template_name': 'template.tex',
\})
quitall!

View File

@@ -0,0 +1,11 @@
\documentclass[14pt]{article}
\def\E{}
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{#1}\!\left[#2\right]}
\def\PP{\ensuremath\mathrm{P}}
\begin{document}
%%% VIMTEX PLACEHOLDER
\end{document}