bootstrap vimtex
+ ultisnips
, with (mostly) sane defaults
Read Elijan Mastnak's series, and Gilles Castel’s original article.
This is for those who want a starting point that "just works" (and also for those who look over my shoulder and ask "what's that!?")
First, make sure you have
For Arch Linux and its derivatives ( Arch
pacman -S texlive-basic texlive-bin texlive-fontsrecommended texlive-mathscience texlive-binextra --needed
Now, the vim
plugins. Note that vimtex
and delimitmate
are in the AUR
. You can alternatively use a vim plugin manager, but I don't bother.
yay -S vim-vimtex vim-ultisnips vim-delimitmate
Last, but not least, place the config files in ~/.vim
. Here's a handy script to expedite that, and backup your current vimrc
:
sh <(curl -s https://raw.githubusercontent.com/gsobell/ready-set-vimtex/main/setup.sh)
Good job! All done! That was quick, right?
Generate matrices with ease! pmat3x3
with just a tab
becomes:
\begin{pmatrix}
& & \\
& & \\
& & \\
\end{pmatrix}
With tab stops (just like typing a matrix on Wolfram Alpha)!
Sometimes you just want to write the letters that trigger a snippet, and you end up fighting the auto complete.
Note that not all of these may render correctly, since the Github latex rendering doesn't include the amsmath
package.