?? uil.vim
字號:
" Vim syntax file" Language: Motif UIL (User Interface Language)" Maintainer: Thomas Koehler <jean-luc@picard.franken.de>" Last Change: 2001 Jan 15" Quit when a syntax file was already loadedif version < 600 syntax clearelseif exists("b:current_syntax") finishendif" A bunch of useful keywordssyn keyword uilType arguments callbacks colorsyn keyword uilType compound_string controls endsyn keyword uilType exported file includesyn keyword uilType module object proceduresyn keyword uilType user_defined xbitmapfilesyn keyword uilTodo contained TODO" String and Character contstants" Highlight special characters (those which have a backslash) differentlysyn match uilSpecial contained "\\\d\d\d\|\\."syn region uilString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=uilSpecialsyn match uilCharacter "'[^\\]'"syn region uilString start=+'+ skip=+\\\\\|\\"+ end=+'+ contains=uilSpecialsyn match uilSpecialCharacter "'\\.'"syn match uilSpecialStatement "Xm[^ =(){}]*"syn match uilSpecialFunction "MrmNcreateCallback"syn match uilRessource "XmN[^ =(){}]*"syn match uilNumber "-\=\<\d*\.\=\d\+\(e\=f\=\|[uU]\=[lL]\=\)\>"syn match uilNumber "0[xX][0-9a-fA-F]\+\>"syn region uilComment start="/\*" end="\*/" contains=uilTodosyn match uilComment "!.*" contains=uilTodosyn match uilCommentError "\*/"syn region uilPreCondit start="^#\s*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=uilComment,uilString,uilCharacter,uilNumber,uilCommentErrorsyn match uilIncluded contained "<[^>]*>"syn match uilInclude "^#\s*include\s\+." contains=uilString,uilIncludedsyn match uilLineSkip "\\$"syn region uilDefine start="^#\s*\(define\>\|undef\>\)" end="$" contains=uilLineSkip,uilComment,uilString,uilCharacter,uilNumber,uilCommentErrorsyn sync ccomment uilComment" 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_uil_syn_inits") if version < 508 let did_uil_syn_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif " The default highlighting. HiLink uilCharacter uilString HiLink uilSpecialCharacter uilSpecial HiLink uilNumber uilString HiLink uilCommentError uilError HiLink uilInclude uilPreCondit HiLink uilDefine uilPreCondit HiLink uilIncluded uilString HiLink uilSpecialFunction uilRessource HiLink uilRessource Identifier HiLink uilSpecialStatement Keyword HiLink uilError Error HiLink uilPreCondit PreCondit HiLink uilType Type HiLink uilString String HiLink uilComment Comment HiLink uilSpecial Special HiLink uilTodo Todo delcommand HiLinkendiflet b:current_syntax = "uil"" vim: ts=8
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -