⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 texmf.vim

📁 MSYS在windows下模拟了一个类unix的终端
💻 VIM
字号:
" Vim syntax file" Language: Web2C TeX texmf.cnf configuration file" Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>" Last Change: 2001-04-26" URI: http://physics.muni.cz/~yeti/download/texmf.vim" TODO: add `display' where appropriate" Setup {{{" React to possibly already-defined syntax." For version 5.x: Clear all syntax items unconditionally" For version 6.x: Quit when a syntax file was already loadedif version >= 600  if exists("b:current_syntax")    finish  endifelse  syntax clearendifsyn case match" }}}" Comments {{{syn match texmfComment "%..\+$" contains=texmfTodosyn match texmfComment "%\s*$" contains=texmfTodosyn keyword texmfTodo TODO FIXME contained" }}}" Constants and parameters {{{syn match texmfPassedParameter "[-+]\=%\w\W"syn match texmfPassedParameter "[-+]\=%\w$"syn match texmfNumber "\<\d\+\>"syn match texmfVariable "\$\(\w\k*\|{\w\k*}\)"syn match texmfSpecial +\\"\|\\$+syn region texmfString start=+"+ end=+"+ skip=+\\"\\\\+ contains=texmfVariable,texmfSpecial,texmfPassedParameter" }}}" Assignments {{{syn match texmfLHSStart "^\s*\w\k*" nextgroup=texmfLHSDot,texmfEqualssyn match texmfLHSVariable "\w\k*" contained nextgroup=texmfLHSDot,texmfEqualssyn match texmfLHSDot "\." contained nextgroup=texmfLHSVariablesyn match texmfEquals "\s*=" contained" }}}" Specialities {{{syn match texmfComma "," containedsyn match texmfColons ":\|;"syn match texmfDoubleExclam "!!" contained" }}}" Catch errors caused by wrong parenthesization {{{syn region texmfBrace matchgroup=texmfBraceBrace start="{" end="}" contains=ALLBUT,texmfTodo,texmfBraceError,texmfLHSVariable,texmfLHSDot transparentsyn match texmfBraceError "}"" }}}" Define the default highlighting {{{" For version 5.7 and earlier: Only when not done already" For version 5.8 and later: Only when an item doesn't have highlighting yetif version >= 508 || !exists("did_texmf_syntax_inits")  if version < 508    let did_texmf_syntax_inits = 1    command -nargs=+ HiLink hi link <args>  else    command -nargs=+ HiLink hi def link <args>  endif  HiLink texmfComment         Comment  HiLink texmfTodo            Todo  HiLink texmfPassedParameter texmfVariable  HiLink texmfVariable        Identifier  HiLink texmfNumber          Number  HiLink texmfString          String  HiLink texmfLHSStart        texmfLHS  HiLink texmfLHSVariable     texmfLHS  HiLink texmfLHSDot          texmfLHS  HiLink texmfLHS             Type  HiLink texmfEquals          Normal  HiLink texmfBraceBrace      texmfDelimiter  HiLink texmfComma           texmfDelimiter  HiLink texmfColons          texmfDelimiter  HiLink texmfDelimiter       Preproc  HiLink texmfDoubleExclam    Statement  HiLink texmfSpecial         Special  HiLink texmfBraceError      texmfError  HiLink texmfError           Error  delcommand HiLinkendif" }}}let b:current_syntax = "texmf"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -