Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jessekelighine/vim-bunttex
Minimal syntax highlighting for LaTeX.
https://github.com/jessekelighine/vim-bunttex
Last synced: 11 days ago
JSON representation
Minimal syntax highlighting for LaTeX.
- Host: GitHub
- URL: https://github.com/jessekelighine/vim-bunttex
- Owner: jessekelighine
- Created: 2023-12-04T14:11:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T21:22:22.000Z (about 2 months ago)
- Last Synced: 2024-11-18T22:35:43.845Z (about 2 months ago)
- Language: Vim Script
- Homepage:
- Size: 532 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-bunttex
LaTeX syntax highlight in Vim/Neovim are too complicated and unnecessarily colourful.
Thus, I created my own LaTeX syntax highlight file with the aim of being simple and readable.Two features of my LaTeX syntax files:
- **minimalism**:
LaTeX files can be *huge*.
I don't need complex regex rules to highlight every detail.
The [main syntax file](syntax/tex.vim) only highlights what I consider to be necessary.
- **supporting files**:
Sometimes you need extra highlightings, e.g., when writing Ti*k*Z.
I also provide additional syntax files you can use in specific circumstances.
See directory [`syntax-additional`](syntax-additional) to see the additional files.## Installation
Install using your favourite plugin manager, or use Vim's built-in package
support:
```sh
mkdir -p ~/.vim/pack/jessekelighine/start
cd ~/.vim/pack/jessekelighine/start
git clone https://github.com/jessekelighine/vim-bunttex
```## Tips
Source the support files only when you need them.
For example, when you open a Ti*k*Z file,
simply run
```vim
:source path/to/syntax-additional/tikz.vim
```
and you will get highlighting for Ti*k*Z.
To 'undo' the Ti*k*Z highlighting, run
```vim
:set ft=tex
```## License
Distributed under the same terms as Vim itself. See `:help license`.