3 Star 0 Fork 0

Gitee 极速下载/vimtex

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/lervag/vimtex
克隆/下载
tex.vim 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
" VimTeX - LaTeX plugin for Vim
"
" Maintainer: Karl Yngve Lervåg
" Email: karl.yngve@gmail.com
"
"
" This script is a fork of version 119 (dated 2020-06-29) of the syntax script
" "tex.vim" created and maintained by Charles E. Campbell [0].
"
" [0]: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX
if !get(g:, 'vimtex_syntax_enabled', 1) | finish | endif
if exists('b:current_syntax') | finish | endif
if exists('s:is_loading') | finish | endif
let s:is_loading = 1
" Syntax may be loaded without the main VimTeX functionality, thus we need to
" ensure that the options are loaded!
call vimtex#options#init()
" Load core syntax and highlighting rules (does not depend on VimTeX state)
call vimtex#syntax#core#init_options()
call vimtex#syntax#core#init_rules()
call vimtex#syntax#core#init_highlights()
" Initialize buffer local syntax state
unlet! b:vimtex_syntax_did_postinit
let b:vimtex_syntax = {}
call vimtex#syntax#nested#reset()
" Load syntax rules that depend on VimTeX state
" * This includes e.g. package specific syntax
if exists('b:vimtex')
call vimtex#syntax#core#init_post()
endif
" Use autocommands to ensure
" 1. that highlight groups are defined when colorschemes are changed or the
" background is toggled, and
" 2. that the init_post function is executed when VimTeX state is loaded (if it
" was not already done).
augroup vimtex_syntax
autocmd! * <buffer>
autocmd ColorScheme <buffer> call vimtex#syntax#core#init_highlights()
autocmd! User VimtexEventInitPost call vimtex#syntax#core#init_post()
augroup END
unlet s:is_loading
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/vimtex.git
git@gitee.com:mirrors/vimtex.git
mirrors
vimtex
vimtex
master

搜索帮助