Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.61 KB

head.md

File metadata and controls

51 lines (34 loc) · 1.61 KB

ready-set-vimtex

bootstrap vimtex + ultisnips, with (mostly) sane defaults

But First!

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!?")

For the Impatient

First, make sure you have $\LaTeX$ properly installed:

For Arch Linux and its derivatives ( Arch $\frac{dy}{dx}$):

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?

Exciting Features!

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)!

Idiosyncrasies

Sometimes you just want to write the letters that trigger a snippet, and you end up fighting the auto complete.

Table of Snippets

Note that not all of these may render correctly, since the Github latex rendering doesn't include the amsmath package.