Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sillybun/zyt-snippet
https://github.com/sillybun/zyt-snippet
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sillybun/zyt-snippet
- Owner: sillybun
- Created: 2019-11-10T07:03:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-18T12:22:08.000Z (almost 3 years ago)
- Last Synced: 2024-05-23T04:54:19.475Z (6 months ago)
- Language: Vim Snippet
- Size: 495 KB
- Stars: 79
- Watchers: 4
- Forks: 18
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zyt-snippet
## LaTeX snippet depends on vimtex
The LaTeX snippet use [vimtex](https://github.com/lervag/vimtex) to tell whether the current consor is in a math environment so you need to install it first.## helper function
We make helper functions available to multiple snippet files by defining helper functions in a file `pythonx/snippet_helpers.py`.
Note that Vim will load the `snippet_helpers.py` one time only. That means that any changes you make to the helper functions in `snippet_helpers.py` won’t be seen by your snippet files until you reboot Vim.
See [here](http://vimcasts.org/episodes/ultisnips-python-interpolation/) and `:help UltiSnips-globals` for more infomation.## Development
1. Snippets for math expressions that can be commonly used in markdown and LaTeX are collected into one place `Ultisnips/mathtex.snippets`. Any snippet in this file can be used and will be triggered in markdown and LaTeX files. `tex.snippets` and `markdown.snippets` are for snippets that only works for that filetype.