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

📄 lilo.vim

📁 MSYS在windows下模拟了一个类unix的终端
💻 VIM
字号:
" Vim syntax file" Language: lilo configuration (lilo.conf)" Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>" Last Change: 2001-04-26" URI: http://physics.muni.cz/~yeti/download/lilo.vim"" Notes: Slightly overengineered now; deny-all based: virtually everything is"        an error and only what is recognized is higlighted otherwise" 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 clearendif" Set iskeyword since we need `-' (and potentially others) in keywords." For version 5.x: Set it globally" For version 6.x: Set it locallyif version >= 600  command -nargs=1 SetIsk setlocal iskeyword=<args>else  command -nargs=1 SetIsk set iskeyword=<args>endifSetIsk @,48-57,.,-,_delcommand SetIsksyn case ignore" }}}" Base constructs {{{syn match liloError "\S\+"syn match liloComment "#.*$"syn match liloEnviron "\$\w\+" containedsyn match liloEnviron "\${[^}]\+}" containedsyn match liloDecNumber "-\=\d\+" containedsyn match liloHexNumber "0[xX]\x\+" containedsyn match liloSpecial contained "\\\(\"\|\\\|$\)"syn region liloString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained contains=liloSpecial,liloEnvironsyn region liloPath start=+/+ skip=+\\\\\|\\ \|\\$"+ end=+ \|$+ contained contains=liloSpecial,liloEnvironsyn region liloAnything start=+[^[:space:]#]+ skip=+\\\\\|\\ \|\\$+ end=+ \|$+ contained contains=liloSpecial,liloEnviron,liloString" }}}" Path {{{syn keyword liloOption backup boot force-backup install keytable map message nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipemptysyn keyword liloKernelOpt initrd root nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipemptysyn keyword liloImageOpt path loader nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipemptysyn keyword liloDiskOpt partition nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty" }}}" Other {{{syn keyword liloOption default serial nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipemptysyn keyword liloKernelOpt ramdisk nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipemptysyn keyword liloImageOpt alias label password range nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipemptysyn keyword liloDiskOpt set nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty" }}}" Symbolic {{{syn keyword liloKernelOpt vga nextgroup=liloEqVga,liloEqVgaComment,liloError skipwhite skipempty" }}}" Number {{{syn keyword liloOption delay timeout verbose nextgroup=liloEqDecNumber,liloEqDecNumberComment,liloError skipwhite skipemptysyn keyword liloDiskOpt sectors heads cylinders start nextgroup=liloEqDecNumber,liloEqDecNumberComment,liloError skipwhite skipempty" }}}" String {{{syn keyword liloKernelOpt append nextgroup=liloEqString,liloEqStringComment,liloError skipwhite skipemptysyn keyword liloImageOpt fallback literal nextgroup=liloEqString,liloEqStringComment,liloError skipwhite skipempty" }}}" Hex number {{{syn keyword liloImageOpt map-drive to nextgroup=liloEqHexNumber,liloEqHexNumberComment,liloError skipwhite skipemptysyn keyword liloDiskOpt bios normal hidden nextgroup=liloEqHexNumber,liloEqHexNumberComment,liloError skipwhite skipempty" }}}" Flag {{{syn keyword liloOption compact fix-table ignore-table linear nowarn promptsyn keyword liloKernelOpt read-only read-writesyn keyword liloImageOpt lock optional restricted single-key unsafesyn keyword liloDiskOpt change activate deactivate inaccessible reset" }}}" Image {{{syn keyword liloImage image other nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipemptysyn keyword liloDisk disk nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipemptysyn keyword liloChRules change-rules" }}}" Vga keywords {{{syn keyword liloVgaKeyword ask ext extended normal contained" }}}" Comment followed by equal sign and ... {{{syn match liloEqPathComment "#.*$" contained nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipemptysyn match liloEqVgaComment "#.*$" contained nextgroup=liloEqVga,liloEqVgaComment,liloError skipwhite skipemptysyn match liloEqDecNumberComment "#.*$" contained nextgroup=liloEqDecNumber,liloEqDecNumberComment,liloError skipwhite skipemptysyn match liloEqHexNumberComment "#.*$" contained nextgroup=liloEqHexNumber,liloEqHexNumberComment,liloError skipwhite skipemptysyn match liloEqStringComment "#.*$" contained nextgroup=liloEqString,liloEqStringComment,liloError skipwhite skipemptysyn match liloEqAnythingComment "#.*$" contained nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty" }}}" Equal sign followed by ... {{{syn match liloEqPath "=" contained nextgroup=liloPath,liloPathComment,liloError skipwhite skipemptysyn match liloEqVga "=" contained nextgroup=liloVgaKeyword,liloHexNumber,liloDecNumber,liloVgaComment,liloError skipwhite skipemptysyn match liloEqDecNumber "=" contained nextgroup=liloDecNumber,liloDecNumberComment,liloError skipwhite skipemptysyn match liloEqHexNumber "=" contained nextgroup=liloHexNumber,liloHexNumberComment,liloError skipwhite skipemptysyn match liloEqString "=" contained nextgroup=liloString,liloStringComment,liloError skipwhite skipemptysyn match liloEqAnything "=" contained nextgroup=liloAnything,liloAnythingComment,liloError skipwhite skipempty" }}}" Comment followed by ... {{{syn match liloPathComment "#.*$" contained nextgroup=liloPath,liloPathComment,liloError skipwhite skipemptysyn match liloVgaComment "#.*$" contained nextgroup=liloVgaKeyword,liloHexNumber,liloVgaComment,liloError skipwhite skipemptysyn match liloDecNumberComment "#.*$" contained nextgroup=liloDecNumber,liloDecNumberComment,liloError skipwhite skipemptysyn match liloHexNumberComment "#.*$" contained nextgroup=liloHexNumber,liloHexNumberComment,liloError skipwhite skipemptysyn match liloStringComment "#.*$" contained nextgroup=liloString,liloStringComment,liloError skipwhite skipemptysyn match liloAnythingComment "#.*$" contained nextgroup=liloAnything,liloAnythingComment,liloError skipwhite skipempty" }}}" 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_lilo_syntax_inits")  if version < 508    let did_lilo_syntax_inits = 1    command -nargs=+ HiLink hi link <args>  else    command -nargs=+ HiLink hi def link <args>  endif  HiLink liloEqPath             liloEquals  HiLink liloEqWord             liloEquals  HiLink liloEqVga              liloEquals  HiLink liloEqDecNumber        liloEquals  HiLink liloEqHexNumber        liloEquals  HiLink liloEqString           liloEquals  HiLink liloEqAnything         liloEquals  HiLink liloEquals             Special  HiLink liloError              Error  HiLink liloEqPathComment      liloComment  HiLink liloEqVgaComment       liloComment  HiLink liloEqDecNumberComment liloComment  HiLink liloEqHexNumberComment liloComment  HiLink liloEqStringComment    liloComment  HiLink liloEqAnythingComment  liloComment  HiLink liloPathComment        liloComment  HiLink liloVgaComment         liloComment  HiLink liloDecNumberComment   liloComment  HiLink liloHexNumberComment   liloComment  HiLink liloStringComment      liloComment  HiLink liloAnythingComment    liloComment  HiLink liloComment            Comment  HiLink liloDiskOpt            liloOption  HiLink liloKernelOpt          liloOption  HiLink liloImageOpt           liloOption  HiLink liloOption             Keyword  HiLink liloDecNumber          liloNumber  HiLink liloHexNumber          liloNumber  HiLink liloNumber             Number  HiLink liloString             String  HiLink liloPath               Constant  HiLink liloSpecial            Special  HiLink liloAnything           Normal  HiLink liloEnviron            Identifier  HiLink liloVgaKeyword         Identifier  HiLink liloImage              Type  HiLink liloChRules            Preproc  HiLink liloDisk               Preproc  delcommand HiLinkendif" }}}let b:current_syntax = "lilo"

⌨️ 快捷键说明

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