📄 tf.vim
字号:
" Vim syntax file" Language: tf" Maintainer: Lutz Eymers <ixtab@polzin.com>" URL: http://www.isp.de/data/tf.vim" Email: send syntax_vim.tgz" Last Change: 2001 May 10"" Options lite_minlines = x to sync at least x lines backwards" Remove any old syntax stuff hanging around" 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") finishendifsyn case matchif !exists("main_syntax") let main_syntax = 'tf'endif" Special global variablessyn keyword tfVar HOME LANG MAIL SHELL TERM TFHELP TFLIBDIR TFLIBRARY TZ containedsyn keyword tfVar background backslash containedsyn keyword tfVar bamf bg_output borg clearfull cleardone clock connect containedsyn keyword tfVar emulation end_color gag gethostbyname gpri hook hilite containedsyn keyword tfVar hiliteattr histsize hpri insert isize istrip kecho containedsyn keyword tfVar kprefix login lp lpquote maildelay matching max_iter containedsyn keyword tfVar max_recur mecho more mprefix oldslash promt_sec containedsyn keyword tfVar prompt_usec proxy_host proxy_port ptime qecho qprefix containedsyn keyword tfVar quite quitdone redef refreshtime scroll shpause snarf sockmload containedsyn keyword tfVar start_color tabsize telopt sub time_format visual containedsyn keyword tfVar watch_dog watchname wordpunct wrap wraplog wrapsize containedsyn keyword tfVar wrapspace contained" Worldvarsyn keyword tfWorld world_name world_character world_password world_host containedsyn keyword tfWorld world_port world_mfile world_type contained" Numbersyn match tfNumber "-\=\<\d\+\>"" Floatsyn match tfFloat "\(-\=\<\d+\|-\=\)\.\d\+\>"" Operatorsyn match tfOperator "[-+=?:&|!]"syn match tfOperator "/[^*~@]"he=e-1syn match tfOperator ":="syn match tfOperator "[^/%]\*"hs=s+1syn match tfOperator "$\+[([{]"he=e-1,me=e-1syn match tfOperator "\^\[\+"he=s+1 contains=tfSpecialCharEsc" Relationalsyn match tfRelation "&&"syn match tfRelation "||"syn match tfRelation "[<>/!=]="syn match tfRelation "[<>]"syn match tfRelation "[!=]\~"syn match tfRelation "[=!]/"" Readonly Varsyn match tfReadonly "[#*]" containedsyn match tfReadonly "\<-\=L\=\d\{-}\>" containedsyn match tfReadonly "\<P\(\d\+\|R\|L\)\>" containedsyn match tfReadonly "\<R\>" contained" Identifiersyn match tfIdentifier "%\+[a-zA-Z_#*-0-9]\w*" contains=tfVar,tfReadonlysyn match tfIdentifier "%\+[{]"he=e-1,me=e-1syn match tfIdentifier "\$\+{[a-zA-Z_#*-0-9]\w*}" contains=tfWorld" Function namessyn keyword tfFunctions ascii char columns echo filename ftime fwrite getoptssyn keyword tfFunctions getpid idle kbdel kbgoto kbhead kblen kbmatch kbpointsyn keyword tfFunctions kbtail kbwordleft kbwordright keycode lines modsyn keyword tfFunctions moresize pad rand read regmatch send strcat strchrsyn keyword tfFunctions strcmp strlen strncmp strrchr strrep strstr substrsyn keyword tfFunctions systype time tolower touppersyn keyword tfStatement addworld bamf beep bind break cat changes connect containedsyn keyword tfStatement dc def dokey echo edit escape eval export expr fg for containedsyn keyword tfStatement gag getfile grab help hilite histsize hook if input containedsyn keyword tfStatement kill lcd let list listsockets listworlds load containedsyn keyword tfStatement localecho log nohilite not partial paste ps purge containedsyn keyword tfStatement purgeworld putfile quit quote recall recordline save containedsyn keyword tfStatement saveworld send sh shift sub substitute containedsyn keyword tfStatement suspend telnet test time toggle trig trigger unbind containedsyn keyword tfStatement undef undefn undeft unhook untrig unworld containedsyn keyword tfStatement version watchdog watchname while world contained" Hookssyn keyword tfHook ACTIVITY BACKGROUND BAMF CONFAIL CONFLICT CONNECT DISCONNECTsyn keyword tfHook KILL LOAD LOADFAIL LOG LOGIN MAIL MORE PENDING PENDINGsyn keyword tfHook PROCESS PROMPT PROXY REDEF RESIZE RESUME SEND SHADOW SHELLsyn keyword tfHook SIGHUP SIGTERM SIGUSR1 SIGUSR2 WORLD" Conditionalsyn keyword tfConditional if endif then else elseif contained" Repeatsyn keyword tfRepeat while do done repeat for contained" Statementsyn keyword tfStatement break quit contained" Includesyn keyword tfInclude require load save loaded contained" Definesyn keyword tfDefine bind unbind def undef undefn undefn purge hook unhook trig untrig containedsyn keyword tfDefine set unset setenv contained" Todosyn keyword tfTodo TODO Todo todo contained" SpecialCharsyn match tfSpecialChar "\\[abcfnrtyv\\]" containedsyn match tfSpecialChar "\\\d\{3}" contained contains=tfOctalErrorsyn match tfSpecialChar "\\x[0-9a-fA-F]\{2}" containedsyn match tfSpecialCharEsc "\[\+" containedsyn match tfOctalError "[89]" contained" Commentsyn region tfComment start="^;" end="$" contains=tfTodo" Stringsyn region tfString oneline matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=tfIdentifier,tfSpecialChar,tfEscapesyn region tfString matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=tfIdentifier,tfSpecialChar,tfEscapesyn match tfParentError "[)}\]]"" Parentssyn region tfParent matchgroup=Delimiter start="(" end=")" contains=ALLBUT,tfReadonlysyn region tfParent matchgroup=Delimiter start="\[" end="\]" contains=ALLsyn region tfParent matchgroup=Delimiter start="{" end="}" contains=ALLsyn match tfEndCommand "%%\{-};"syn match tfJoinLines "\\$"" Typessyn match tfType "/[a-zA-Z_~@][a-zA-Z0-9_]*" contains=tfConditional,tfRepeat,tfStatement,tfInclude,tfDefine,tfStatement" Catch /quote .. 'syn match tfQuotes "/quote .\{-}'" contains=ALLBUT,tfString" Catch $(/escape )syn match tfEscape "(/escape .*)"" syncif exists("tf_minlines") exec "syn sync minlines=" . tf_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_tf_syn_inits") if version < 508 let did_tf_syn_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink tfComment Comment HiLink tfString String HiLink tfNumber Number HiLink tfFloat Float HiLink tfIdentifier Identifier HiLink tfVar Identifier HiLink tfWorld Identifier HiLink tfReadonly Identifier HiLink tfHook Identifier HiLink tfFunctions Function HiLink tfRepeat Repeat HiLink tfConditional Conditional HiLink tfLabel Label HiLink tfStatement Statement HiLink tfType Type HiLink tfInclude Include HiLink tfDefine Define HiLink tfSpecialChar SpecialChar HiLink tfSpecialCharEsc SpecialChar HiLink tfParentError Error HiLink tfTodo Todo HiLink tfEndCommand Delimiter HiLink tfJoinLines Delimiter HiLink tfOperator Operator HiLink tfRelation Operator delcommand HiLinkendiflet b:current_syntax = "tf"if main_syntax == 'tf' unlet main_syntaxendif" vim: ts=8
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -