vimtex/test/vader/env.vader
Karl Yngve Lervåg 1763cd3ae9 Add tests for cse
2016-05-31 23:59:26 +02:00

44 lines
534 B
Plaintext

Before:
set buftype=
silent w!
After:
set buftype=nofile
silent call delete('[Vader-workbench]')
Given tex (Environments: foo and bar):
\begin{foo}
Foo
\end{foo}
\begin{bar}
Bar
\end{bar}
Do (Change env: foo -> baz):
csebaz\<cr>
Expect tex (Verify):
\begin{baz}
Foo
\end{baz}
\begin{bar}
Bar
\end{bar}
Do (Change env: foo -> bar (with completion)):
cse\<c-z>\<c-z>\<c-z>\<cr>
Expect tex (Verify):
\begin{bar}
Foo
\end{bar}
\begin{bar}
Bar
\end{bar}
Before:
After: