2015-03-07 17:02:15 -05:00
|
|
|
# vimtex
|
2015-02-22 12:44:01 -05:00
|
|
|
|
2015-03-22 09:53:25 -04:00
|
|
|
A [vim](http://www.vim.org/) plugin that provides support for writing
|
2015-03-22 09:44:41 -04:00
|
|
|
LaTeX documents.
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
Below is a list of features offered by vimtex. The features are accessible as
|
|
|
|
both commands and mappings. The mappings generally start with
|
|
|
|
`<localleader>l`, but if desired one can disable default mappings to define
|
|
|
|
custom mappings. All features are enabled by default, but each feature may be
|
|
|
|
disabled if desired.
|
|
|
|
|
2015-03-23 14:20:09 -04:00
|
|
|
- Document compilation with
|
2015-03-22 09:44:41 -04:00
|
|
|
[latexmk](http://users.phys.psu.edu/~collins/software/latexmk-jcc/)
|
|
|
|
- Support for several PDF viewers with forward search
|
|
|
|
- [MuPDF](http://www.mupdf.com/)
|
|
|
|
- [Zathura](https://pwmt.org/projects/zathura/)
|
|
|
|
- [Okular](https://okular.kde.org/)
|
|
|
|
- [qpdfview](https://launchpad.net/qpdfview)
|
|
|
|
- [SumatraPDF](http://www.sumatrapdfreader.org/free-pdf-reader.html)
|
|
|
|
- Other viewers are supported through a general interface
|
2016-01-04 07:05:25 -05:00
|
|
|
- Completion of citations, labels, and file names for figures
|
2015-03-22 09:53:25 -04:00
|
|
|
- Document navigation through
|
|
|
|
- table of content
|
|
|
|
- table of labels
|
2015-05-10 05:00:31 -04:00
|
|
|
- Word count (through `texcount`)
|
2015-03-22 09:44:41 -04:00
|
|
|
- Motions
|
2015-03-22 09:53:25 -04:00
|
|
|
- Move between sections with `[[`, `[]`, `][`, `]]`
|
2015-03-23 14:20:09 -04:00
|
|
|
- Move between matching delimiters with `%`
|
2015-03-22 09:44:41 -04:00
|
|
|
- Text objects
|
2015-03-22 09:53:25 -04:00
|
|
|
- `ie ae` LaTeX environments
|
|
|
|
- `i$ a$` Inline math structures
|
|
|
|
- `id ad` Delimiters
|
|
|
|
- Other mappings
|
2015-05-07 08:57:32 -04:00
|
|
|
- Delete the surrounding command or environment with `dsc`/`dse`
|
|
|
|
- Change the surrounding command or environment with `csc`/`cse`
|
2015-03-22 09:53:25 -04:00
|
|
|
- Toggle starred environment with `tse`
|
|
|
|
- Toggle between e.g. `()` and `\left(\right)` with `tsd`
|
2015-03-22 09:55:25 -04:00
|
|
|
- Close the current environment in insert mode with `]]`
|
2015-03-22 09:53:25 -04:00
|
|
|
- Insert new command with `<F7>`
|
2015-10-19 16:05:30 -04:00
|
|
|
- Convenient insert mode mappings for faster typing of e.g. maths
|
2015-10-19 14:58:14 -04:00
|
|
|
- Improved folding (`:h 'foldexpr'`)
|
|
|
|
- Improved indentation (`:h 'indentexpr'`)
|
2015-03-23 14:20:09 -04:00
|
|
|
- Improved syntax highlighting
|
|
|
|
- Highlight matching delimiters
|
|
|
|
- Support for `biblatex`/`natbib` package
|
|
|
|
- Support for `cleveref` package
|
|
|
|
- Support for `listings` package
|
2015-10-19 14:58:14 -04:00
|
|
|
- Support for `minted` package
|
2015-03-23 14:20:09 -04:00
|
|
|
- Support for `dot2tex` with nested syntax highlighting
|
2015-03-22 09:44:41 -04:00
|
|
|
|
2015-03-22 09:53:25 -04:00
|
|
|
See the documentation for a more thorough introduction of the plugin (e.g. `:h
|
|
|
|
vimtex`).
|
2013-10-05 07:53:42 -04:00
|
|
|
|
|
|
|
## Installation
|
2015-02-22 12:44:01 -05:00
|
|
|
|
2015-03-22 09:44:41 -04:00
|
|
|
If you use [vim-plug](https://github.com/junegunn/vim-plug), then add the
|
|
|
|
following line to your `vimrc` file:
|
2013-10-05 07:53:42 -04:00
|
|
|
|
2015-03-22 09:44:41 -04:00
|
|
|
```vim
|
|
|
|
Plug 'lervag/vimtex'
|
|
|
|
```
|
2013-10-05 07:53:42 -04:00
|
|
|
|
2015-03-22 09:44:41 -04:00
|
|
|
Or use some other plugin manager:
|
|
|
|
- [vundle](https://github.com/gmarik/vundle)
|
|
|
|
- [neobundle](https://github.com/Shougo/neobundle.vim)
|
|
|
|
- [pathogen](https://github.com/tpope/vim-pathogen)
|
2013-10-05 07:53:42 -04:00
|
|
|
|
2015-03-22 09:44:41 -04:00
|
|
|
## Alternatives
|
2013-10-05 07:53:42 -04:00
|
|
|
|
2015-03-22 09:44:41 -04:00
|
|
|
- [LaTeX-Box](https://github.com/LaTeX-Box-Team/LaTeX-Box)
|
|
|
|
- [LaTeX-Suite](http://vim-latex.sourceforge.net)
|
|
|
|
- [AutomaticTexPlugin](http://atp-vim.sourceforge.net)
|
|
|
|
- [vim-latex-live-preview](https://github.com/xuhdev/vim-latex-live-preview)
|
2013-10-05 07:53:42 -04:00
|
|
|
|
2015-03-22 09:44:41 -04:00
|
|
|
## License
|
2013-10-05 07:53:42 -04:00
|
|
|
|
2015-03-22 09:44:41 -04:00
|
|
|
The MIT license (MIT)
|
2013-10-05 07:53:42 -04:00
|
|
|
|
2015-03-22 09:44:41 -04:00
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to
|
|
|
|
deal in the Software without restriction, including without limitation the
|
|
|
|
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
2015-02-22 12:44:01 -05:00
|
|
|
|
2015-03-22 09:44:41 -04:00
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
2015-03-08 14:12:31 -04:00
|
|
|
|
2015-03-22 09:44:41 -04:00
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
|
IN THE SOFTWARE.
|
2015-03-08 14:12:31 -04:00
|
|
|
|