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

📄 lout.vim

📁 MSYS在windows下模拟了一个类unix的终端
💻 VIM
字号:
" Vim syntax file" Language   : Lout" Maintainer : Christian V. J. Br黶sow <cvjb@bigfoot.de>" Last change: Son 06 Mai 2001 20:33:13 CEST" Lout: Basser Lout document formatting system." 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" Lout is case sensitivesyn case match" Synchronization, I know it is a huge number, but normal texts can be" _very_ long ;-)syn sync lines=1000" Characters allowed in keywords" I don't know if 128-255 are allowed in ANS-FORHTif version >= 600	setlocal iskeyword=@,48-57,.,@-@,_,192-255else	set iskeyword=@,48-57,.,@-@,_,192-255endif" Some special keywordssyn keyword loutTodo contained TODO lout Lout LOUTsyn keyword loutDefine def macro" Some big structuressyn keyword loutKeyword @Begin @End @Figure @Tabsyn keyword loutKeyword @Book @Doc @Document @Reportsyn keyword loutKeyword @Introduction @Abstract @Appendixsyn keyword loutKeyword @Chapter @Section @BeginSections @EndSections" All kind of Lout keywordssyn match loutFunction '\<@[^ \t{}]\+\>'" Braces -- Don`t edit these lines!syn match loutMBraces '[{}]'syn match loutIBraces '[{}]'syn match loutBBrace '[{}]'syn match loutBIBraces '[{}]'syn match loutHeads '[{}]'" Unmatched braces.syn match loutBraceError '}'" End of multi-line definitions, like @Document, @Report and @Book.syn match loutEOmlDef '^//$'" Grouping of parameters and objects.syn region loutObject transparent matchgroup=Delimiter start='{' matchgroup=Delimiter end='}' contains=ALLBUT,loutBraceError" The NULL object has a special meaningsyn keyword loutNULL {}" Commentssyn region loutComment start='\#' end='$' contains=loutTodo" Double quotessyn region loutSpecial start=+"+ skip=+\\\\\|\\"+ end=+"+" ISO-LATIN-1 characters created with @Char, or Adobe symbols" created with @Symsyn match loutSymbols '@\(\(Char\)\|\(Sym\)\)\s\+[A-Za-z]\+'" Include filessyn match loutInclude '@IncludeGraphic\s\+\k\+'syn region loutInclude start='@\(\(SysInclude\)\|\(IncludeGraphic\)\|\(Include\)\)\s*{' end='}'" Tagssyn match loutTag '@\(\(Tag\)\|\(PageMark\)\|\(PageOf\)\|\(NumberOf\)\)\s\+\k\+'syn region loutTag start='@Tag\s*{' end='}'" Equationssyn match loutMath '@Eq\s\+\k\+'syn region loutMath matchgroup=loutMBraces start='@Eq\s*{' matchgroup=loutMBraces end='}' contains=ALLBUT,loutBraceError"" Fontssyn match loutItalic '@I\s\+\k\+'syn region loutItalic matchgroup=loutIBraces start='@I\s*{' matchgroup=loutIBraces end='}' contains=ALLBUT,loutBraceErrorsyn match loutBold '@B\s\+\k\+'syn region loutBold matchgroup=loutBBraces start='@B\s*{' matchgroup=loutBBraces end='}' contains=ALLBUT,loutBraceErrorsyn match loutBoldItalic '@BI\s\+\k\+'syn region loutBoldItalic matchgroup=loutBIBraces start='@BI\s*{' matchgroup=loutBIBraces end='}' contains=ALLBUT,loutBraceErrorsyn region loutHeadings matchgroup=loutHeads start='@\(\(Title\)\|\(Caption\)\)\s*{' matchgroup=loutHeads end='}' contains=ALLBUT,loutBraceError" 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_lout_syn_inits")	if version < 508		let did_lout_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 overrriden later.	HiLink loutTodo Todo	HiLink loutDefine Define	HiLink loutEOmlDef Define	HiLink loutFunction Function	HiLink loutBraceError Error	HiLink loutNULL Special	HiLink loutComment Comment	HiLink loutSpecial Special	HiLink loutSymbols Character	HiLink loutInclude Include	HiLink loutKeyword Keyword	HiLink loutTag Tag	HiLink loutMath Number	" HiLink Not really needed here, but I think it is more consistent.	HiLink loutMBraces loutMath	hi loutItalic term=italic cterm=italic gui=italic	HiLink loutIBraces loutItalic	hi loutBold term=bold cterm=bold gui=bold	HiLink loutBBraces loutBold	hi loutBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic	HiLink loutBIBraces loutBoldItalic	hi loutHeadings term=bold cterm=bold guifg=indianred	HiLink loutHeads loutHeadings	delcommand HiLinkendiflet b:current_syntax = "lout"" vim:ts=3:sw=3:

⌨️ 快捷键说明

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