I broke up with neovim....vim is my best friend now
This commit is contained in:
16
dot_vim/plugged/vimtex/test/test-formatting/Makefile
Normal file
16
dot_vim/plugged/vimtex/test/test-formatting/Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
MYVIM ?= nvim --clean --headless
|
||||
|
||||
INMAKE := 1
|
||||
export INMAKE
|
||||
|
||||
TESTS := $(wildcard *.ref)
|
||||
TESTS := $(TESTS:.ref=)
|
||||
|
||||
.PHONY: test $(TESTS)
|
||||
|
||||
test: $(TESTS)
|
||||
@rm -f test-*.out
|
||||
|
||||
$(TESTS):
|
||||
@FILE=$@ $(MYVIM) -u test.vim
|
||||
@diff $@.out $@.ref
|
||||
5
dot_vim/plugged/vimtex/test/test-formatting/test-01.ref
Normal file
5
dot_vim/plugged/vimtex/test/test-formatting/test-01.ref
Normal file
@@ -0,0 +1,5 @@
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing % a comment
|
||||
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.
|
||||
6
dot_vim/plugged/vimtex/test/test-formatting/test-01.tex
Normal file
6
dot_vim/plugged/vimtex/test/test-formatting/test-01.tex
Normal file
@@ -0,0 +1,6 @@
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing % a comment
|
||||
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.
|
||||
8
dot_vim/plugged/vimtex/test/test-formatting/test-02.ref
Normal file
8
dot_vim/plugged/vimtex/test/test-formatting/test-02.ref
Normal file
@@ -0,0 +1,8 @@
|
||||
start a new paragraph \\
|
||||
start a new line but not a new paragraph \\*
|
||||
flush all, start a new (odd numbered) page \cleardoublepage
|
||||
flush all, start a new page \clearpage
|
||||
allow to break the line here \linebreak
|
||||
request a new line \newline
|
||||
request a new page \newpage
|
||||
encourage page break \pagebreak
|
||||
8
dot_vim/plugged/vimtex/test/test-formatting/test-02.tex
Normal file
8
dot_vim/plugged/vimtex/test/test-formatting/test-02.tex
Normal file
@@ -0,0 +1,8 @@
|
||||
start a new paragraph \\
|
||||
start a new line but not a new paragraph \\*
|
||||
flush all, start a new (odd numbered) page \cleardoublepage
|
||||
flush all, start a new page \clearpage
|
||||
allow to break the line here \linebreak
|
||||
request a new line \newline
|
||||
request a new page \newpage
|
||||
encourage page break \pagebreak
|
||||
21
dot_vim/plugged/vimtex/test/test-formatting/test-03.ref
Normal file
21
dot_vim/plugged/vimtex/test/test-formatting/test-03.ref
Normal file
@@ -0,0 +1,21 @@
|
||||
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{itemize}
|
||||
\item 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
|
||||
\item ipsum dolor sit amet.
|
||||
start a new paragraph % test
|
||||
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.
|
||||
\end{itemize}
|
||||
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.
|
||||
23
dot_vim/plugged/vimtex/test/test-formatting/test-03.tex
Normal file
23
dot_vim/plugged/vimtex/test/test-formatting/test-03.tex
Normal file
@@ -0,0 +1,23 @@
|
||||
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{itemize}
|
||||
\item 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
|
||||
\item ipsum dolor sit amet.
|
||||
start a new paragraph % test
|
||||
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.
|
||||
\end{itemize}
|
||||
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.
|
||||
14
dot_vim/plugged/vimtex/test/test-formatting/test-04.ref
Normal file
14
dot_vim/plugged/vimtex/test/test-formatting/test-04.ref
Normal file
@@ -0,0 +1,14 @@
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt asd asdj klkut \( g(x) = 4\) labore et dolore magna aliquyam
|
||||
erat, sed diam volu. $f(x) = 3$ vero eos et accusam et justo duo dolores et ea
|
||||
\begin{align}
|
||||
f(x) &= 1 \\
|
||||
g(x) &= 2
|
||||
\end{align}
|
||||
rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
|
||||
sit amet.
|
||||
\[
|
||||
e^{2\pi i} = 1
|
||||
\]
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt asd asdj klkut labore et
|
||||
15
dot_vim/plugged/vimtex/test/test-formatting/test-04.tex
Normal file
15
dot_vim/plugged/vimtex/test/test-formatting/test-04.tex
Normal file
@@ -0,0 +1,15 @@
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
|
||||
diam nonumy eirmod tempor invidunt asd asdj klkut \( g(x)
|
||||
= 4\) labore et dolore magna aliquyam erat, sed diam volu.
|
||||
$f(x) = 3$ vero eos et accusam et justo duo dolores et ea
|
||||
\begin{align}
|
||||
f(x) &= 1 \\
|
||||
g(x) &= 2
|
||||
\end{align}
|
||||
rebum. Stet clita kasd gubergren, no sea takimata sanctus
|
||||
est Lorem ipsum dolor sit amet.
|
||||
\[
|
||||
e^{2\pi i} = 1
|
||||
\]
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
|
||||
diam nonumy eirmod tempor invidunt asd asdj klkut labore et
|
||||
17
dot_vim/plugged/vimtex/test/test-formatting/test-05.ref
Normal file
17
dot_vim/plugged/vimtex/test/test-formatting/test-05.ref
Normal file
@@ -0,0 +1,17 @@
|
||||
Therefore, in that case the observed dynamics cannot be truly Markovian. We can
|
||||
still approximately capture the observed density dynamics with
|
||||
eq.~\ref{eq:fpe}; however the local coefficients are then effectively averages
|
||||
over the co-evolving unobserved distribution. For example, $\vec v(\vec
|
||||
x,t)=\int p(\vec x^u|\vec x,t)v(\vec x,\vec x^u,t)dx^u$. This has some
|
||||
important consequences. First, the effective Markovian coefficients $\vec v,
|
||||
\lambda, D$, will generally depend on time, reflecting the time evolution of
|
||||
the hidden $p(\vec x^u)$ over the time scale of the experiment. Second, the
|
||||
effective coefficients may also depend on the initial condition: a cell
|
||||
population started concentrated around label $\vec x_0$ implies a certain
|
||||
distribution over $x^u$ when sampled at label $\vec x$ some time later; another
|
||||
population started around $\vec x_1$ carries a different history when it, too,
|
||||
visits $\vec x$ later. Therefore, for instance the effective drift $\vec v(\vec
|
||||
x)$ will be different in the two cases. We conclude that, if unobserved degrees
|
||||
of freedom have dynamics on the time scale of the experiment eq.~\ref{eq:fpe}
|
||||
is an approximation whose coefficients become \emph{non-universal} (dependent
|
||||
on intial conditions) and \emph{time-dependent}.
|
||||
17
dot_vim/plugged/vimtex/test/test-formatting/test-05.tex
Normal file
17
dot_vim/plugged/vimtex/test/test-formatting/test-05.tex
Normal file
@@ -0,0 +1,17 @@
|
||||
Therefore, in that case the observed dynamics cannot be truly
|
||||
Markovian. We can still approximately capture the observed density dynamics
|
||||
with eq.~\ref{eq:fpe}; however the local coefficients are then effectively
|
||||
averages over the co-evolving unobserved distribution. For example, $\vec
|
||||
v(\vec x,t)=\int p(\vec x^u|\vec x,t)v(\vec x,\vec x^u,t)dx^u$. This has some
|
||||
important consequences. First, the effective Markovian coefficients $\vec v,
|
||||
\lambda, D$, will generally depend on time, reflecting the time evolution of
|
||||
the hidden $p(\vec x^u)$ over the time scale of the experiment. Second, the
|
||||
effective coefficients may also depend on the initial condition: a cell
|
||||
population started concentrated around label $\vec x_0$ implies a certain
|
||||
distribution over $x^u$ when sampled at label $\vec x$ some time later; another
|
||||
population started around $\vec x_1$ carries a different history when it, too,
|
||||
visits $\vec x$ later. Therefore, for instance the effective drift $\vec v(\vec
|
||||
x)$ will be different in the two cases. We conclude that, if unobserved degrees
|
||||
of freedom have dynamics on the time scale of the experiment eq.~\ref{eq:fpe}
|
||||
is an approximation whose coefficients become \emph{non-universal} (dependent
|
||||
on intial conditions) and \emph{time-dependent}.
|
||||
9
dot_vim/plugged/vimtex/test/test-formatting/test-06.ref
Normal file
9
dot_vim/plugged/vimtex/test/test-formatting/test-06.ref
Normal file
@@ -0,0 +1,9 @@
|
||||
\begin{enumerate}[(i)]
|
||||
\item xxxxxxxxxx xx xxxxxx xxxxxx xx xxxxxxxxxx xxxxxxx xxxxxxx xxx
|
||||
xxxxxxxxxx xxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxx xxxx xxxxx xxxxxxxxxxx
|
||||
xxxxxxx xxxxxxxxxxxx xxxx xxxxxxx xxxxxxxxx xxxxxxxxx xxxxxxxxxxx xxxxxxxxx
|
||||
xxxxxxxxx xx xxxxxxxxx
|
||||
\item xxxxxx xxxxxxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxxxx xxxxxxxxxxxxxx xxx
|
||||
xxxxxxxxxxxxxx xxxxxxxxx xxxxxxxxxx xx xxxxxxxxxx xxxxxxxxxx xxxxxxxxxxx
|
||||
xxxxxxxxxxxxxxxxx xxxxx xxxxxxx
|
||||
\end{enumerate}
|
||||
9
dot_vim/plugged/vimtex/test/test-formatting/test-06.tex
Normal file
9
dot_vim/plugged/vimtex/test/test-formatting/test-06.tex
Normal file
@@ -0,0 +1,9 @@
|
||||
\begin{enumerate}[(i)]
|
||||
\item xxxxxxxxxx xx xxxxxx xxxxxx xx xxxxxxxxxx xxxxxxx xxxxxxx xxx
|
||||
xxxxxxxxxx xxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxx xxxx xxxxx xxxxxxxxxxx xxxxxxx
|
||||
xxxxxxxxxxxx xxxx xxxxxxx xxxxxxxxx xxxxxxxxx xxxxxxxxxxx xxxxxxxxx xxxxxxxxx
|
||||
xx xxxxxxxxx
|
||||
\item xxxxxx xxxxxxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxxxx xxxxxxxxxxxxxx xxx
|
||||
xxxxxxxxxxxxxx xxxxxxxxx xxxxxxxxxx xx xxxxxxxxxx xxxxxxxxxx xxxxxxxxxxx
|
||||
xxxxxxxxxxxxxxxxx xxxxx xxxxxxx
|
||||
\end{enumerate}
|
||||
25
dot_vim/plugged/vimtex/test/test-formatting/test.vim
Normal file
25
dot_vim/plugged/vimtex/test/test-formatting/test.vim
Normal file
@@ -0,0 +1,25 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin indent on
|
||||
syntax on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
set nomore
|
||||
set textwidth=79
|
||||
set nojoinspaces
|
||||
set shiftwidth=2
|
||||
|
||||
let g:vimtex_format_enabled = 1
|
||||
|
||||
let s:file = empty($FILE) ? 'test-01' : $FILE
|
||||
|
||||
|
||||
execute 'silent edit' s:file . '.tex'
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
silent normal! gggqG
|
||||
|
||||
execute 'silent write!' s:file . '.out'
|
||||
quit!
|
||||
Reference in New Issue
Block a user