📄 xmath.vim
字号:
" Vim syntax file" Language: xmath (a simulation tool)" Maintainer: Dr. Charles E. Campbell, Jr. <Charles.E.Campbell.1@gsfc.nasa.gov>" Last Change: May 14, 1999" For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600 syntax clearelseif exists("b:current_syntax") finishendif" parenthesis sanity checkersyn region xmathZone matchgroup=Delimiter start="(" matchgroup=Delimiter end=")" transparent contains=ALLBUT,xmathError,xmathBraceError,xmathCurlyErrorsyn region xmathZone matchgroup=Delimiter start="{" matchgroup=Delimiter end="}" transparent contains=ALLBUT,xmathError,xmathBraceError,xmathParenErrorsyn region xmathZone matchgroup=Delimiter start="\[" matchgroup=Delimiter end="]" transparent contains=ALLBUT,xmathError,xmathCurlyError,xmathParenErrorsyn match xmathError "[)\]}]"syn match xmathBraceError "[)}]" containedsyn match xmathCurlyError "[)\]]" containedsyn match xmathParenError "[\]}]" containedsyn match xmathComma "[,;:]"syn match xmathComma "\.\.\.$"" A bunch of useful xmath keywordssyn case ignoresyn keyword xmathFuncCmd function endfunction command endcommandsyn keyword xmathStatement abort beep debug default definesyn keyword xmathStatement execute exit pause return undefinesyn keyword xmathConditional if else elseif endifsyn keyword xmathRepeat while for endwhile endforsyn keyword xmathCmd anigraph deletedatastore keep renamedatastoresyn keyword xmathCmd autocode deletestd linkhyper renamestdsyn keyword xmathCmd build deletesuperblock linksim renamesuperblocksyn keyword xmathCmd comment deletetransition listusertype savesyn keyword xmathCmd copydatastore deleteusertype load sbadisplaysyn keyword xmathCmd copystd detailmodel lock setsyn keyword xmathCmd copysuperblock display minmax_display setsbdefaultsyn keyword xmathCmd createblock documentit modifyblock showsyn keyword xmathCmd createbubble editcatalog modifybubble showlicensesyn keyword xmathCmd createconnection erase modifystd showsbdefaultsyn keyword xmathCmd creatertf expandsuperbubble modifysuperblock stopsyn keyword xmathCmd createstd for modifytransition stopcosimsyn keyword xmathCmd createsuperblock go modifyusertype syntaxsyn keyword xmathCmd createsuperbubble goto new unaliassyn keyword xmathCmd createtransition hardcopy next unlocksyn keyword xmathCmd createusertype help polargraph usertypesyn keyword xmathCmd delete hyperbuild print whatissyn keyword xmathCmd deleteblock if printmodel whilesyn keyword xmathCmd deletebubble ifilter quit whosyn keyword xmathCmd deleteconnection ipcwc remove xgraphsyn keyword xmathFunc abcd eye irea querystdoptionssyn keyword xmathFunc abs eyepattern is querysuperblocksyn keyword xmathFunc acos feedback ISID querysuperblockoptsyn keyword xmathFunc acosh fft ISID Models querytransitionsyn keyword xmathFunc adconversion fftpdm kronecker querytransitionoptsyn keyword xmathFunc afeedback filter length qzsyn keyword xmathFunc all find limit rampinvarsyn keyword xmathFunc ambiguity firparks lin randomsyn keyword xmathFunc amdemod firremez lin30 randpdmsyn keyword xmathFunc analytic firwind linearfm randpertsyn keyword xmathFunc analyze fmdemod linfnorm randsyssyn keyword xmathFunc any forwdiff lintodb ranksyn keyword xmathFunc append fprintf list rayleighsyn keyword xmathFunc argn frac log rcepstrumsyn keyword xmathFunc argv fracred log10 rcondsyn keyword xmathFunc arma freq logm rdintegratesyn keyword xmathFunc arma2ss freqcircle lognormal readsyn keyword xmathFunc armax freqcont logspace realsyn keyword xmathFunc ascii frequencyhop lowpass rectifysyn keyword xmathFunc asin fsesti lpopt redschursyn keyword xmathFunc asinh fslqgcomp lqgcomp reflectsyn keyword xmathFunc atan fsregu lqgltr regulatorsyn keyword xmathFunc atan2 fwls ls residuesyn keyword xmathFunc atanh gabor ls2unc riccatisyn keyword xmathFunc attach_ac100 garb ls2var riccati_eigsyn keyword xmathFunc backdiff gaussian lsjoin riccati_schursyn keyword xmathFunc balance gcexp lu riceansyn keyword xmathFunc balmoore gcos lyapunov rifdsyn keyword xmathFunc bandpass gdfileselection makecontinuous rlinfosyn keyword xmathFunc bandstop gdmessage makematrix rlocussyn keyword xmathFunc bj gdselection makepoly rmssyn keyword xmathFunc blknorm genconv margin rootlocussyn keyword xmathFunc bode get markoff rootssyn keyword xmathFunc bpm get_info30 matchedpz roundsyn keyword xmathFunc bpm2inn get_inn max rrefsyn keyword xmathFunc bpmjoin gfdm maxlike rve_getsyn keyword xmathFunc bpmsplit gfsk mean rve_infosyn keyword xmathFunc bst gfskernel mergeseg rve_resetsyn keyword xmathFunc buttconstr gfunction min rve_updatesyn keyword xmathFunc butterworth ggauss minimal sampleholdsyn keyword xmathFunc cancel giv mkpert schursyn keyword xmathFunc canform giv2var mkphase sdfsyn keyword xmathFunc ccepstrum givjoin mma sdssyn keyword xmathFunc char gpsk mmaget sdtrspsyn keyword xmathFunc chebconstr gpulse mmaput secsyn keyword xmathFunc chebyshev gqam mod sechsyn keyword xmathFunc check gqpsk modal siginterpsyn keyword xmathFunc cholesky gramp modalstate signsyn keyword xmathFunc chop gsawtooth modcarrier simsyn keyword xmathFunc circonv gsigmoid mreduce sim30syn keyword xmathFunc circorr gsin mtxplt siminsyn keyword xmathFunc clock gsinc mu simin30syn keyword xmathFunc clocus gsqpsk mulhank simoutsyn keyword xmathFunc clsys gsquarewave multipath simout30syn keyword xmathFunc coherence gstep musynfit simtransformsyn keyword xmathFunc colorind GuiDialogCreate mxstr2xmstr sinsyn keyword xmathFunc combinepf GuiDialogDestroy mxstring2xmstring singriccatisyn keyword xmathFunc commentof GuiFlush names sinhsyn keyword xmathFunc compare GuiGetValue nichols sinmsyn keyword xmathFunc complementaryerf GuiManage noisefilt sizesyn keyword xmathFunc complexenvelope GuiPlot none smarginsyn keyword xmathFunc complexfreqshift GuiPlotGet norm sns2syssyn keyword xmathFunc concatseg GuiSetValue numden sortsyn keyword xmathFunc condition GuiShellCreate nyquist spectradsyn keyword xmathFunc conj GuiShellDeiconify obscf spectrumsyn keyword xmathFunc conmap GuiShellDestroy observable splinesyn keyword xmathFunc connect GuiShellIconify oe sprintfsyn keyword xmathFunc conpdm GuiShellLower ones sqrtsyn keyword xmathFunc constellation GuiShellRaise ophank sqrtmsyn keyword xmathFunc consys GuiShellRealize optimize sresidualizesyn keyword xmathFunc controllable GuiShellUnrealize optscale ss2armasyn keyword xmathFunc convolve GuiTimer orderfilt sstsyn keyword xmathFunc correlate GuiToolCreate orderstate ssvsyn keyword xmathFunc cos GuiToolDestroy orth stablesyn keyword xmathFunc cosh GuiToolExist oscmd stairsyn keyword xmathFunc cosm GuiUnmanage oscope starpsyn keyword xmathFunc cot GuiWidgetExist osscale stepsyn keyword xmathFunc coth h2norm padcrop stepinvarsyn keyword xmathFunc covariance h2syn partialsum stringsyn keyword xmathFunc csc hadamard pdm stringexsyn keyword xmathFunc csch hankelsv pdmslice substrsyn keyword xmathFunc csum hessenberg pem subsyssyn keyword xmathFunc ctrcf highpass perfplots sumsyn keyword xmathFunc ctrlplot hilbert period svdsyn keyword xmathFunc daug hilberttransform pfscale svplotsyn keyword xmathFunc dbtolin hinfcontr phaseshift sweepsyn keyword xmathFunc dct hinfnorm pinv symbolmapsyn keyword xmathFunc decimate hinfsyn plot sys2snssyn keyword xmathFunc defFreqRange histogram plot30 sysicsyn keyword xmathFunc defTimeRange idfreq pmdemod Sysidsyn keyword xmathFunc delay idimpulse poisson systemsyn keyword xmathFunc delsubstr idsim poissonimpulse tansyn keyword xmathFunc det ifft poleplace tanhsyn keyword xmathFunc detrend imag poles tapersyn keyword xmathFunc dht impinvar polezero tfidsyn keyword xmathFunc diagonal impplot poltrend toeplitzsyn keyword xmathFunc differentiate impulse polyfit tracesyn keyword xmathFunc directsequence index polynomial trilsyn keyword xmathFunc discretize indexlist polyval trimsyn keyword xmathFunc divide initial polyvalm trim30syn keyword xmathFunc domain initmodel prbs triusyn keyword xmathFunc dst initx0 product trspsyn keyword xmathFunc eig inn2bpm psd truncatesyn keyword xmathFunc ellipconstr inn2pe put_inn tustinsyn keyword xmathFunc elliptic inn2unc qpopt uniformsyn keyword xmathFunc erf insertseg qr valsyn keyword xmathFunc error int quantize variancesyn keyword xmathFunc estimator integrate queryblock videolinessyn keyword xmathFunc etfe integratedump queryblockoptions wcbodesyn keyword xmathFunc exist interp querybubble wcgainsyn keyword xmathFunc exp interpolate querybubbleoptionswindowsyn keyword xmathFunc expm inv querycatalog wtbalancesyn keyword xmathFunc extractchan invhilbert queryconnection zerossyn keyword xmathFunc extractseg iqmix querystdsyn case match" Labels (supports xmath's goto)syn match xmathLabel "^\s*<[a-zA-Z_][a-zA-Z0-9]*>"" String and Character constants" Highlight special characters (those which have a backslash) differentlysyn match xmathSpecial contained "\\\d\d\d\|\\."syn region xmathString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=xmathSpecialsyn match xmathCharacter "'[^\\]'"syn match xmathSpecialChar "'\\.'"syn match xmathNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"" Comments:" xmath supports #... (like Unix shells)" and #{ ... }# comment blockssyn keyword xmathTodo contained TODO Todo DEBUGsyn match xmathComment "#.*$" contains=xmathString,xmathTodosyn region xmathCommentBlock start="#{" end="}#" contains=xmathString,xmathTodo" synchronizingsyn sync match xmathSyncComment grouphere xmathCommentBlock "#{"syn sync match xmathSyncComment groupthere NONE "}#"" 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_xmath_syntax_inits") if version < 508 let did_xmath_syntax_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink xmathBraceError xmathError HiLink xmathCmd xmathStatement HiLink xmathCommentBlock xmathComment HiLink xmathCurlyError xmathError HiLink xmathFuncCmd xmathStatement HiLink xmathParenError xmathError " The default methods for highlighting. Can be overridden later HiLink xmathCharacter Character HiLink xmathComma Delimiter HiLink xmathComment Comment HiLink xmathCommentBlock Comment HiLink xmathConditional Conditional HiLink xmathError Error HiLink xmathFunc Function HiLink xmathLabel PreProc HiLink xmathNumber Number HiLink xmathRepeat Repeat HiLink xmathSpecial Type HiLink xmathSpecialChar SpecialChar HiLink xmathStatement Statement HiLink xmathString String HiLink xmathTodo Todo delcommand HiLinkendiflet b:current_syntax = "xmath"" vim: ts=17
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -