📄 htmlos.vim
字号:
" Vim syntax file" Language: HTML/OS by Aestiva" Maintainer: Jason Rust <jrust@westmont.edu>" URL: http://www.rustyparts.com/vim/syntax/htmlos.vim" Info: http://www.rustyparts.com/scripts.php" Last Change: 2001 May 10"" 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") finishendifif !exists("main_syntax") let main_syntax = 'htmlos'endifif version < 600 so <sfile>:p:h/html.vimelse runtime! syntax/html.vim unlet b:current_syntaxendifsyn cluster htmlPreproc add=htmlosRegionsyn case ignore" Function namessyn keyword htmlosFunctions expand sleep getlink version system ascii getascii syslock sysunlock cr lf clean postprep listtorow split listtocol coltolist rowtolist tabletolist containedsyn keyword htmlosFunctions cut \display cutall cutx cutallx length reverse lower upper proper repeat left right middle trim trimleft trimright count countx locate locatex replace replacex replaceall replaceallx paste pasteleft pasteleftx pasteleftall pasteleftallx pasteright pasterightall pasterightallx chopleft chopleftx chopright choprightx format concat containedsyn keyword htmlosFunctions goto exitgoto containedsyn keyword htmlosFunctions layout cols rows row items getitem putitem switchitems gettable delrow delrows delcol delcols append merge fillcol fillrow filltable pastetable getcol getrow fillindexcol insindexcol dups nodups maxtable mintable maxcol mincol maxrow minrow avetable avecol averow mediantable mediancol medianrow producttable productcol productrow sumtable sumcol sumrow sumsqrtable sumsqrcol sumsqrrow reversecols reverserows switchcols switchrows inscols insrows insfillcol sortcol reversesortcol sortcoln reversesortcoln sortrow sortrown reversesortrow reversesortrown getcoleq getcoleqn getcolnoteq getcolany getcolbegin getcolnotany getcolnotbegin getcolge getcolgt getcolle getcollt getcolgen getcolgtn getcollen getcoltn getcolend getcolnotend getrowend getrownotend getcolin getcolnotin getcolinbegin getcolnotinbegin getcolinend getcolnotinend getrowin getrownotin getrowinbegin getrownotinbegin getrowinend getrownotinend containedsyn keyword htmlosFunctions dbcreate dbadd dbedit dbdelete dbsearch dbsearchsort dbget dbgetsort dbstatus dbindex dbimport dbfill dbexport dbsort dbgetrec dbremove dbpurge dbfind dbfindsort dbunique dbcopy dbmove dbkill dbtransfer dbpoke dbsearchx dbgetx containedsyn keyword htmlosFunctions syshtmlosname sysstartname sysfixfile fileinfo filelist fileindex domainname page browser regdomain username usernum getenv httpheader copy file ts row sysls syscp sysmv sysmd sysrd filepush filepushlink dirname containedsyn keyword htmlosFunctions mail to address subject netmail netmailopen netmailclose mailfilelist netweb netwebresults webpush netsockopen netsockread netsockwrite netsockclose containedsyn keyword htmlosFunctions today time systime now yesterday tomorrow getday getmonth getyear getminute getweekday getweeknum getyearday getdate gettime getamorpm gethour addhours addminutes adddays timebetween timetill timefrom datetill datefrom mixedtimebetween mixeddatetill mixedtimetill mixedtimefrom mixeddatefrom nextdaybyweekfromdate nextdaybyweekfromtoday nextdaybymonthfromdate nextdaybymonthfromtoday nextdaybyyearfromdate nextdaybyyearfromtoday offsetdaybyweekfromdate offsetdaybyweekfromtoday offsetdaybymonthfromdate offsetdaybymonthfromtoday containedsyn keyword htmlosFunctions isprivate ispublic isfile isdir isblank iserror iserror iseven isodd istrue isfalse islogical istext istag isnumber isinteger isdate istableeq istableeqx istableeqn isfuture ispast istoday isweekday isweekend issamedate iseq isnoteq isge isle ismod10 isvalidstring containedsyn keyword htmlosFunctions celtof celtokel ftocel ftokel keltocel keltof cmtoin intocm fttom mtoft fttomile miletoft kmtomile miletokm mtoyd ydtom galtoltr ltrtogal ltrtoqt qttoltr gtooz oztog kgtolb lbtokg mttoton tontomt containedsyn keyword htmlosFunctions max min abs sign inverse square sqrt cube roundsig round ceiling roundup floor rounddown roundeven rounddowneven roundupeven roundodd roundupodd rounddownodd random factorial summand fibonacci remainder mod radians degrees cos sin tan cotan secant cosecant acos asin atan exp power power10 ln log10 log sinh cosh tanh containedsyn keyword htmlosFunctions xmldelete xmldeletex xmldeleteattr xmldeleteattrx xmledit xmleditx xmleditvalue xmleditvaluex xmleditattr xmleditattrx xmlinsertbefore xmlinsertbeforex smlinsertafter xmlinsertafterx xmlinsertattr xmlinsertattrx smlget xmlgetx xmlgetvalue xmlgetvaluex xmlgetattrvalue xmlgetattrvaluex xmlgetrec xmlgetrecx xmlgetrecattrvalue xmlgetrecattrvaluex xmlchopleftbefore xmlchopleftbeforex xmlchoprightbefore xmlchoprightbeforex xmlchopleftafter xmlchopleftafterx xmlchoprightafter xmlchoprightafterx xmllocatebefore xmllocatebeforex xmllocateafter xmllocateafterx contained" Typesyn keyword htmlosType int str dol flt dat grp contained" StorageClasssyn keyword htmlosStorageClass locals contained" Operatorsyn match htmlosOperator "[-=+/\*!]" containedsyn match htmlosRelation "[~]" containedsyn match htmlosRelation "[=~][&!]" containedsyn match htmlosRelation "[!=<>]=" containedsyn match htmlosRelation "[<>]" contained" Commentsyn region htmlosComment start="#" end="/#" contained" Conditionalsyn keyword htmlosConditional if then /if to else elif containedsyn keyword htmlosConditional and or nand nor xor not contained" Repeatsyn keyword htmlosRepeat while do /while for /for contained" Keywordsyn keyword htmlosKeyword name value step do rowname colname rownum contained" Repeatsyn keyword htmlosLabel case matched /case switch contained" Statementsyn keyword htmlosStatement break exit return continue contained" Identifiersyn match htmlosIdentifier "\h\w*[\.]*\w*" contained" Special identifiersyn match htmlosSpecialIdentifier "[\$@]" contained" Definesyn keyword htmlosDefine function overlay contained" Booleansyn keyword htmlosBoolean true false contained" Stringsyn region htmlosStringDouble keepend matchgroup=None start=+"+ end=+"+ containedsyn region htmlosStringSingle keepend matchgroup=None start=+'+ end=+'+ contained" Numbersyn match htmlosNumber "-\=\<\d\+\>" contained" Floatsyn match htmlosFloat "\(-\=\<\d+\|-\=\)\.\d\+\>" contained" Errorsyn match htmlosError "ERROR" contained" Parentsyn match htmlosParent "[({[\]})]" contained" Todosyn keyword htmlosTodo TODO Todo todo containedsyn cluster htmlosInside contains=htmlosComment,htmlosFunctions,htmlosIdentifier,htmlosSpecialIdentifier,htmlosConditional,htmlosRepeat,htmlosLabel,htmlosStatement,htmlosOperator,htmlosRelation,htmlosStringSingle,htmlosStringDouble,htmlosNumber,htmlosFloat,htmlosError,htmlosKeyword,htmlosType,htmlosBoolean,htmlosParentsyn cluster htmlosTop contains=@htmlosInside,htmlosDefine,htmlosError,htmlosStorageClasssyn region htmlosRegion keepend matchgroup=Delimiter start="<<" skip=+".\{-}?>.\{-}"\|'.\{-}?>.\{-}'\|/\*.\{-}?>.\{-}\*/+ end=">>" contains=@htmlosTopsyn region htmlosRegion keepend matchgroup=Delimiter start="\[\[" skip=+".\{-}?>.\{-}"\|'.\{-}?>.\{-}'\|/\*.\{-}?>.\{-}\*/+ end="\]\]" contains=@htmlosTop" syncif exists("htmlos_minlines") exec "syn sync minlines=" . htmlos_minlineselse syn sync minlines=100endif" 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_htmlos_syn_inits") if version < 508 let did_htmlos_syn_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif " The default methods for highlighting. Can be overridden later HiLink htmlosSpecialIdentifier Operator HiLink htmlosIdentifier Identifier HiLink htmlosStorageClass StorageClass HiLink htmlosComment Comment HiLink htmlosBoolean Boolean HiLink htmlosStringSingle String HiLink htmlosStringDouble String HiLink htmlosNumber Number HiLink htmlosFloat Float HiLink htmlosFunctions Function HiLink htmlosRepeat Repeat HiLink htmlosConditional Conditional HiLink htmlosLabel Label HiLink htmlosStatement Statement HiLink htmlosKeyword Statement HiLink htmlosType Type HiLink htmlosDefine Define HiLink htmlosParent Delimiter HiLink htmlosError Error HiLink htmlosTodo Todo HiLink htmlosOperator Operator HiLink htmlosRelation Operator delcommand HiLinkendiflet b:current_syntax = "htmlos"if main_syntax == 'htmlos' unlet main_syntaxendif" vim: ts=8 sw=2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -