c0a195430d
Added a simple callback function that utilizes the clientserver in vim and the $success_cmd and $failure_cmd in latexmk to call latex#latexmk#error() after compilation. The feature is enabled by default, because it strikes me as a very nice feature! Note that this feature might require a minor update to existing .latexmkrc files, in that existing $success_cmd and $failure_cmd should end in a semicolon in order to allow vim-latex to append the callback. I hope I might remove this restriction in a later update, but I didn't see how to do this now. |
||
---|---|---|
after/syntax | ||
autoload | ||
doc | ||
ftplugin | ||
indent | ||
syntax | ||
.gitignore | ||
README.md |
vim-latex
Introduction
There exists several LaTeX plugins for vim, for instance:
I have been using both LaTeX-Suite and LaTeX-Box myself, but I found both of these to be relatively bulky and difficult to manage and extend. LaTeX-Box was supposed to be simple and lightweight, and I think it was close to being just that. However, after having worked on it for some time, I felt that much of the simplicity could be improved by a complete restructuring.
Enter vim-latex, which is a lightweight and simple plugin that provides LaTeX support for vim. It has most of the functionality of LaTeX-Box, but the idea is to combine vim-latex with the strength of other plugins. I personally recommend UltiSnips for snippets and neocomplete for completion.
Read the documentation for a more thorough introduction.
Installation
With gmarik vundle
https://github.com/gmarik/vundle
Add Bundle 'lervag/vim-latex'
to your ~/.vimrc and run
:BundleInstall
in a vim buffer. Add !
to the command to update.
With neobundle
https://github.com/Shougo/neobundle.vim
Add NeoBundle 'lervag/vim-latex'
to your ~/.vimrc and run
:NeoBundleInstall
in a vim buffer. Add !
to the command to update.
With pathogen
https://github.com/tpope/vim-pathogen
Add the vim-latex bundle to your bundle directory, for instance with git clone
. This will typically be enough:
cd ~/.vim/bundle
git clone git://github.com/lervag/vim-latex
Without a plugin manager
Copy the directories to your .vim/
folder.