1071d4279SBram Moolenaar" Vim syntax file 2b2c0350cSBram Moolenaar" Language: Vim 7.3 script 3071d4279SBram Moolenaar" Maintainer: Dr. Charles E. Campbell, Jr. <[email protected]> 4*74cbdf03SBram Moolenaar" Last Change: August 04, 2010 5*74cbdf03SBram Moolenaar" Version: 7.3-04 6071d4279SBram Moolenaar" Automatically generated keyword lists: {{{1 7071d4279SBram Moolenaar 8071d4279SBram Moolenaar" Quit when a syntax file was already loaded {{{2 9071d4279SBram Moolenaarif exists("b:current_syntax") 10071d4279SBram Moolenaar finish 11071d4279SBram Moolenaarendif 12071d4279SBram Moolenaar 13071d4279SBram Moolenaar" vimTodo: contains common special-notices for comments {{{2 14071d4279SBram Moolenaar" Use the vimCommentGroup cluster to add your own. 1518144c84SBram Moolenaarsyn keyword vimTodo contained COMBAK FIXME TODO XXX 16217ad920SBram Moolenaarsyn cluster vimCommentGroup contains=vimTodo,@Spell 17071d4279SBram Moolenaar 18071d4279SBram Moolenaar" regular vim commands {{{2 19fa01c39dSBram Moolenaarsyn keyword vimCommand contained abc[lear] argdo argu[ment] bel[owright] bN[ext] breakd[el] b[uffer] caddb[uffer] cb[uffer] cex[pr] cg[etfile] checkt[ime] cnew[er] col[der] con[tinue] cq[uit] delc[ommand] diffoff diffu[pdate] dr[op] echom[sg] em[enu] endt[ry] exi[t] fina[lly] fix[del] foldd[oopen] go[to] hid[e] ij[ump] isp[lit] k laddb[uffer] la[st] lch[dir] lex[pr] lgete[xpr] l[ist] lmak[e] lN[ext] loc[kmarks] lpf[ile] lt[ag] lv[imgrep] ma[rk] mk[exrc] mkv[imrc] mz[scheme] new noh[lsearch] on[ly] ped[it] popu prev[ious] prof[ile] pta[g] ptn[ext] pts[elect] py[thon] r[ead] redr[aw] ret[ab] rightb[elow] rundo san[dbox] sbf[irst] sbN[ext] scripte[ncoding] setg[lobal] sh[ell] sla[st] sme sni[ff] sor[t] spelli[nfo] sp[lit] startg[replace] st[op] sunme syncbind tabd[o] tabl[ast] tabN[ext] tabs tcld[o] th[row] tm[enu] tp[revious] tu undoj[oin] uns[ilent] vert[ical] vi[sual] wa[ll] winp[os] wp[revious] ws[verb] xa[ll] xmenu xnoremenu 20fa01c39dSBram Moolenaarsyn keyword vimCommand contained abo[veleft] arge[dit] as[cii] bf[irst] bo[tright] breakl[ist] buffers cad[dexpr] cc cf[ile] c[hange] cla[st] cn[ext] colo[rscheme] cope[n] cr[ewind] d[elete] diffpatch dig[raphs] ds[earch] echon emenu* endw[hile] f[ile] fin[d] fo[ld] foldo[pen] gr[ep] his[tory] il[ist] iuna[bbrev] keepalt lad[dexpr] later lcl[ose] lf[ile] lg[etfile] ll lmapc[lear] lnf[ile] lockv[ar] lp[revious] lua lvimgrepa[dd] marks mks[ession] mod[e] nbc[lose] n[ext] nu[mber] o[pen] pe[rl] popu[p] p[rint] promptf[ind] ptf[irst] ptN[ext] pu[t] qa[ll] rec[over] redraws[tatus] retu[rn] rub[y] ru[ntime] sa[rgument] sbl[ast] sbp[revious] scrip[tnames] setl[ocal] sign sl[eep] smenu sno[magic] so[urce] spellr[epall] spr[evious] star[tinsert] stopi[nsert] sunmenu t tabe[dit] tabm[ove] tabo[nly] ta[g] tclf[ile] tj[ump] tn[ext] tr[ewind] tu[nmenu] undol[ist] up[date] vie[w] vmapc[lear] wh[ile] win[size] wq wundo x[it] XMLent xunme 21fa01c39dSBram Moolenaarsyn keyword vimCommand contained al[l] argg[lobal] bad[d] bl[ast] bp[revious] br[ewind] bun[load] caddf[ile] ccl[ose] cfir[st] changes cl[ist] cN[ext] comc[lear] co[py] cuna[bbrev] delf[unction] diffpu[t] di[splay] dsp[lit] e[dit] endfo[r] ene[w] files fini[sh] foldc[lose] for grepa[dd] iabc[lear] imapc[lear] j[oin] keepj[umps] laddf[ile] lb[uffer] le[ft] lfir[st] lgr[ep] lla[st] lnew[er] lNf[ile] lol[der] lr[ewind] luado lw[indow] mat[ch] mksp[ell] m[ove] nb[key] N[ext] ol[dfiles] opt[ions] perld[o] pp[op] P[rint] promptr[epl] ptj[ump] ptp[revious] pw[d] q[uit] redi[r] reg[isters] rew[ind] rubyd[o] rv[iminfo] sav[eas] sbm[odified] sbr[ewind] se[t] sf[ind] sil[ent] sm[agic] sn[ext] snoreme spelld[ump] spellu[ndo] sre[wind] startr[eplace] sts[elect] sus[pend] tab tabf[ind] tabnew tabp[revious] tags te[aroff] tl[ast] tN[ext] try una[bbreviate] unh[ide] verb[ose] vim[grep] vne[w] winc[md] wn[ext] wqa[ll] wv[iminfo] xmapc[lear] XMLns xunmenu 22fa01c39dSBram Moolenaarsyn keyword vimCommand contained arga[dd] argl[ocal] ba[ll] bm[odified] brea[k] bro[wse] bw[ipeout] cal[l] cd cgetb[uffer] chd[ir] clo[se] cnf[ile] comp[iler] cpf[ile] cw[indow] delm[arks] diffsplit dj[ump] earlier el[se] endf[unction] ex filetype fir[st] folddoc[losed] fu[nction] ha[rdcopy] if is[earch] ju[mps] kee[pmarks] lan[guage] lc[d] lefta[bove] lgetb[uffer] lgrepa[dd] lli[st] lne[xt] lo[adview] lop[en] ls luafile mak[e] menut[ranslate] mkvie[w] mzf[ile] nbs[tart] nmapc[lear] omapc[lear] pc[lose] po[p] pre[serve] profd[el] ps[earch] ptl[ast] ptr[ewind] pyf[ile] quita[ll] red[o] res[ize] ri[ght] rubyf[ile] sal[l] sba[ll] sbn[ext] sb[uffer] setf[iletype] sfir[st] sim[alt] sm[ap] sN[ext] snoremenu spe[llgood] spellw[rong] sta[g] stj[ump] sun[hide] sv[iew] tabc[lose] tabfir[st] tabn[ext] tabr[ewind] tc[l] tf[irst] tm to[pleft] ts[elect] u[ndo] unlo[ckvar] ve[rsion] vimgrepa[dd] vs[plit] windo wN[ext] w[rite] X xme xnoreme y[ank] 23fa01c39dSBram Moolenaarsyn keyword vimCommand contained argd[elete] ar[gs] bd[elete] bn[ext] breaka[dd] bufdo cabc[lear] cat[ch] ce[nter] cgete[xpr] che[ckpath] cmapc[lear] cNf[ile] conf[irm] cp[revious] debugg[reedy] diffg[et] diffthis dl[ist] echoe[rr] elsei[f] en[dif] 24071d4279SBram Moolenaarsyn match vimCommand contained "\<z[-+^.=]" 25071d4279SBram Moolenaar 26071d4279SBram Moolenaar" vimOptions are caught only when contained in a vimSet {{{2 27*74cbdf03SBram Moolenaarsyn keyword vimOption contained acd ambiwidth arabicshape autowriteall backupdir bdlay binary breakat bufhidden cd ci cinw co commentstring confirm cpoptions cscopetag csto cwh dg dip eadirection ek equalprg ex fdi fen fileencodings flp foldexpr foldnestmax fp gfm grepformat guifontwide helpheight highlight hlg im imi incsearch infercase isk keymap langmenu linespace loadplugins macatsui maxcombine mef mls modelines mousehide mp nu omnifunc paragraphs penc pm printdevice printoptions quoteescape restorescreen rnu rulerformat scr sect sft shellredir shm showmode sj smd spell splitbelow ssl stl sw sxq tabpagemax tags tbis terse thesaurus titleold toolbariconsize tsr ttyfast tx undofile ut verbosefile virtualedit wb wfw wildcharm winaltkeys winminwidth wmnu write 28*74cbdf03SBram Moolenaarsyn keyword vimOption contained ai ambw ari aw backupext beval biosk brk buflisted cdpath cin cinwords cocu compatible consk cpt cscopetagorder csverb debug dict dir eb enc errorbells expandtab fdl fenc fileformat fml foldignore foldopen fs gfn grepprg guiheadroom helplang history hls imactivatekey iminsert inde insertmode iskeyword keymodel laststatus lisp lpl magic maxfuncdepth menuitems mm modifiable mousem mps number opendevice paste pex pmbcs printencoding prompt rdt revins ro runtimepath scroll sections sh shellslash shortmess showtabline slm sn spellcapcheck splitright ssop stmp swapfile syn tabstop tagstack tbs textauto tildeop titlestring top ttimeout ttym uc undolevels vb vfile visualbell wc wh wildignore window winwidth wmw writeany 29*74cbdf03SBram Moolenaarsyn keyword vimOption contained akm anti arshape awa backupskip bex bioskey browsedir buftype cedit cindent clipboard cole complete conskey crb cscopeverbose cuc deco dictionary directory ed encoding errorfile exrc fdls fencs fileformats fmr foldlevel foldtext fsync gfs gtl guioptions hf hk hlsearch imak ims indentexpr is isp keywordprg lazyredraw lispwords ls makeef maxmapdepth mfd mmd modified mousemodel msm numberwidth operatorfunc pastetoggle pexpr pmbfn printexpr pt readonly ri rs sb scrollbind secure shcf shelltemp shortname shq sm so spellfile spr st sts swapsync synmaxcol tag tal tenc textmode timeout tl tpm ttimeoutlen ttymouse udf undoreload vbs vi vop wcm whichwrap wildmenu winfixheight wiv wop writebackup 30*74cbdf03SBram Moolenaarsyn keyword vimOption contained al antialias autochdir background balloondelay bexpr bk bs casemap cf cink cmdheight colorcolumn completefunc copyindent cryptmethod cspc cul def diff display edcompatible endofline errorformat fcl fdm fex filetype fo foldlevelstart formatexpr ft gfw gtt guipty hh hkmap ic imc imsearch indentkeys isf isprint km lbr list lsp makeprg maxmem mh mmp more mouses mzq nuw opfunc patchexpr pfn popt printfont pumheight redrawtime rightleft rtp sbo scrolljump sel shell shelltype showbreak si smartcase softtabstop spelllang sps sta su swb syntax tagbsearch tb term textwidth timeoutlen tm tr ttm ttyscroll udir updatecount vdir viewdir wa wd wi wildmode winfixwidth wiw wrap writedelay 31*74cbdf03SBram Moolenaarsyn keyword vimOption contained aleph ar autoindent backspace ballooneval bg bkc bsdir cb cfu cinkeys cmdwinheight columns completeopt cot cscopepathcomp csprg cursorbind define diffexpr dy ef eol esckeys fcs fdn ff fillchars foldclose foldmarker formatlistpat gcr ghr guicursor guitablabel hi hkmapp icon imcmdline inc indk isfname joinspaces kmp lcs listchars lw mat maxmempattern mis mmt mouse mouseshape mzquantum odev osfiletype patchmode ph preserveindent printheader pvh relativenumber rightleftcmd ru sbr scrolloff selection shellcmdflag shellxquote showcmd sidescroll smartindent sol spellsuggest sr stal sua swf ta taglength tbi termbidi tf title to ts tty ttytype ul updatetime ve viewoptions wak weirdinvert wig wildoptions winheight wm wrapmargin ws 32*74cbdf03SBram Moolenaarsyn keyword vimOption contained allowrevins arab autoread backup balloonexpr bh bl bsk cc ch cino cmp com concealcursor cp cscopeprg csqf cursorcolumn delcombine diffopt ea efm ep et fdc fdo ffs fk foldcolumn foldmethod formatoptions gd go guifont guitabtooltip hid hkp iconstring imd include inex isi js kp linebreak lm lz matchpairs maxmemtot mkspellmem mod mousef mouset nf oft pa path pheader previewheight printmbcharset pvw remap rl ruf sc scrollopt selectmode shellpipe shiftround showfulltag sidescrolloff smarttab sp spf srr startofline suffixes switchbuf tabline tagrelative tbidi termencoding tgst titlelen toolbar tsl ttybuiltin tw undodir ur verbose viminfo warn wfh wildchar wim winminheight wmh wrapscan ww 33*74cbdf03SBram Moolenaarsyn keyword vimOption contained altkeymap arabic autowrite backupcopy bdir bin bomb bt ccv charconvert cinoptions cms comments conceallevel cpo cscopequickfix cst cursorline dex digraph ead ei equalalways eventignore fde fdt fileencoding fkmap foldenable foldminlines formatprg gdefault gp guifontset helpfile hidden hl ignorecase imdisable includeexpr inf isident key langmap lines lmap ma matchtime mco ml modeline mousefocus mousetime nrformats ofu para pdev pi previewwindow printmbfont qe report rlc ruler scb scs sessionoptions shellquote shiftwidth showmatch siso smc spc spl ss statusline suffixesadd sws 34071d4279SBram Moolenaar 35071d4279SBram Moolenaar" vimOptions: These are the turn-off setting variants {{{2 36fa01c39dSBram Moolenaarsyn keyword vimOption contained noacd noallowrevins noantialias noarabic noarshape noautoread noaw noballooneval nobinary nobk nobuflisted nocin noconfirm nocopyindent nocscopetag nocsverb nocursorbind nodeco nodiff noeb noek noeol noerrorbells noet noexpandtab nofen nofkmap nogd noguipty nohidden nohkmap nohkp nohlsearch noicon noim noimcmdline noimdisable noinf noinsertmode nojoinspaces nolazyredraw nolinebreak nolist nolpl noma nomagic noml nomodeline nomodified nomousef nomousehide nonumber noopendevice nopi nopreviewwindow nopvw norelativenumber norestorescreen nori norl noro noru nosb noscb noscs nosft noshelltemp noshortname noshowfulltag noshowmode nosm nosmartindent nosmd nosol nosplitbelow nospr nossl nostartofline noswapfile nota notagrelative notbi notbs noterse notextmode notgst notimeout noto notr nottybuiltin notx novisualbell nowarn noweirdinvert nowfw nowinfixheight nowiv nowrap nowrite nowritebackup 37fa01c39dSBram Moolenaarsyn keyword vimOption contained noai noaltkeymap noar noarabicshape noautochdir noautowrite noawa nobeval nobiosk nobl nocf nocindent noconsk nocp nocscopeverbose nocuc nocursorcolumn nodelcombine nodigraph noed noendofline noequalalways noesckeys noex noexrc nofk nofoldenable nogdefault nohid nohk nohkmapp nohls noic noignorecase noimc noimd noincsearch noinfercase nois nojs nolbr nolisp noloadplugins nolz nomacatsui nomh nomod nomodifiable nomore nomousefocus nonu noodev nopaste nopreserveindent noprompt noreadonly noremap norevins norightleft nornu nors noruler nosc noscrollbind nosecure noshellslash noshiftround noshowcmd noshowmatch nosi nosmartcase nosmarttab nosn nospell nosplitright nosr nosta nostmp noswf notagbsearch notagstack notbidi notermbidi notextauto notf notildeop notitle notop nottimeout nottyfast novb nowa nowb nowfh nowildmenu nowinfixwidth nowmnu nowrapscan nowriteany nows 38fa01c39dSBram Moolenaarsyn keyword vimOption contained noakm noanti noarab noari noautoindent noautowriteall nobackup nobin nobioskey nobomb noci nocompatible noconskey nocrb nocst nocul nocursorline nodg noea noedcompatible 39071d4279SBram Moolenaar 40071d4279SBram Moolenaar" vimOptions: These are the invertible variants {{{2 41fa01c39dSBram Moolenaarsyn keyword vimOption contained invacd invallowrevins invantialias invarabic invarshape invautoread invaw invballooneval invbinary invbk invbuflisted invcin invconfirm invcopyindent invcscopetag invcsverb invcursorbind invdeco invdiff inveb invek inveol inverrorbells invet invexpandtab invfen invfkmap invgd invguipty invhidden invhkmap invhkp invhlsearch invicon invim invimcmdline invimdisable invinf invinsertmode invjoinspaces invlazyredraw invlinebreak invlist invlpl invma invmagic invml invmodeline invmodified invmousef invmousehide invnumber invopendevice invpi invpreviewwindow invpvw invrelativenumber invrestorescreen invri invrl invro invru invsb invscb invscs invsft invshelltemp invshortname invshowfulltag invshowmode invsm invsmartindent invsmd invsol invsplitbelow invspr invssl invstartofline invswapfile invta invtagrelative invtbi invtbs invterse invtextmode invtgst invtimeout invto invtr invttybuiltin invtx invvisualbell invwarn invweirdinvert invwfw invwinfixheight invwiv invwrap invwrite invwritebackup 42fa01c39dSBram Moolenaarsyn keyword vimOption contained invai invaltkeymap invar invarabicshape invautochdir invautowrite invawa invbeval invbiosk invbl invcf invcindent invconsk invcp invcscopeverbose invcuc invcursorcolumn invdelcombine invdigraph inved invendofline invequalalways invesckeys invex invexrc invfk invfoldenable invgdefault invhid invhk invhkmapp invhls invic invignorecase invimc invimd invincsearch invinfercase invis invjs invlbr invlisp invloadplugins invlz invmacatsui invmh invmod invmodifiable invmore invmousefocus invnu invodev invpaste invpreserveindent invprompt invreadonly invremap invrevins invrightleft invrnu invrs invruler invsc invscrollbind invsecure invshellslash invshiftround invshowcmd invshowmatch invsi invsmartcase invsmarttab invsn invspell invsplitright invsr invsta invstmp invswf invtagbsearch invtagstack invtbidi invtermbidi invtextauto invtf invtildeop invtitle invtop invttimeout invttyfast invvb invwa invwb invwfh invwildmenu invwinfixwidth invwmnu invwrapscan invwriteany invws 43fa01c39dSBram Moolenaarsyn keyword vimOption contained invakm invanti invarab invari invautoindent invautowriteall invbackup invbin invbioskey invbomb invci invcompatible invconskey invcrb invcst invcul invcursorline invdg invea invedcompatible 44071d4279SBram Moolenaar 45071d4279SBram Moolenaar" termcap codes (which can also be set) {{{2 463577c6faSBram Moolenaarsyn keyword vimOption contained t_AB t_al t_bc t_ce t_cl t_Co t_cs t_Cs t_CS t_CV t_da t_db t_dl t_DL t_EI t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RI t_RV t_Sb t_se t_Sf t_SI t_so t_sr t_te t_ti t_ts t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xs t_ZH t_ZR 473577c6faSBram Moolenaarsyn keyword vimOption contained t_AF t_AL t_cd t_Ce t_cm 48071d4279SBram Moolenaarsyn match vimOption contained "t_%1" 49071d4279SBram Moolenaarsyn match vimOption contained "t_#2" 50071d4279SBram Moolenaarsyn match vimOption contained "t_#4" 51071d4279SBram Moolenaarsyn match vimOption contained "t_@7" 52071d4279SBram Moolenaarsyn match vimOption contained "t_*7" 53071d4279SBram Moolenaarsyn match vimOption contained "t_&8" 54071d4279SBram Moolenaarsyn match vimOption contained "t_%i" 55071d4279SBram Moolenaarsyn match vimOption contained "t_k;" 56071d4279SBram Moolenaar 57071d4279SBram Moolenaar" unsupported settings: these are supported by vi but don't do anything in vim {{{2 58cd71fa3cSBram Moolenaarsyn keyword vimErrSetting contained hardtabs ht w1200 w300 w9600 59071d4279SBram Moolenaar 6080a94a58SBram Moolenaar" AutoCmd Events {{{2 61071d4279SBram Moolenaarsyn case ignore 62ff1d0d4cSBram Moolenaarsyn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre Cmd-event CmdwinEnter CmdwinLeave ColorScheme CursorHold CursorHoldI CursorMoved CursorMovedI EncodingChanged FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileChangedShellPost FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter GUIFailed InsertChange InsertEnter InsertLeave MenuPopup QuickFixCmdPost QuickFixCmdPre RemoteReply SessionLoadPost ShellCmdPost ShellFilterPost SourceCmd SourcePre SpellFileMissing StdinReadPost StdinReadPre SwapExists Syntax TabEnter TabLeave TermChanged TermResponse User UserGettingBored VimEnter VimLeave VimLeavePre VimResized WinEnter WinLeave 63071d4279SBram Moolenaar 64071d4279SBram Moolenaar" Highlight commonly used Groupnames {{{2 65b2c0350cSBram Moolenaarsyn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo 66071d4279SBram Moolenaar 67071d4279SBram Moolenaar" Default highlighting groups {{{2 68fa01c39dSBram Moolenaarsyn keyword vimHLGroup contained ColorColumn Cursor CursorColumn CursorIM CursorLine DiffAdd DiffChange DiffDelete DiffText Directory ErrorMsg FoldColumn Folded IncSearch LineNr MatchParen Menu ModeMsg MoreMsg NonText Normal Pmenu PmenuSbar PmenuSel PmenuThumb Question Scrollbar Search SignColumn SpecialKey SpellBad SpellCap SpellLocal SpellRare StatusLine StatusLineNC TabLine TabLineFill TabLineSel Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu 69293ee4d4SBram Moolenaarsyn match vimHLGroup contained "Conceal" 70071d4279SBram Moolenaarsyn case match 71071d4279SBram Moolenaar 72071d4279SBram Moolenaar" Function Names {{{2 73*74cbdf03SBram Moolenaarsyn keyword vimFuncName contained abs append argv atan2 bufexists bufname byte2line ceil cindent complete confirm cosh cursor did_filetype empty eventhandler exp extend filewritable findfile fmod foldclosed foldtext function getbufline getcharmod getcmdtype getfperm getftype getmatches getqflist gettabvar getwinposy globpath haslocaldir histdel hlexists iconv input inputrestore insert items len line localtime map match matchdelete matchstr min mode nextnonblank pathshorten prevnonblank pumvisible readfile reltimestr remote_foreground remote_read remove repeat reverse search searchpair searchpos serverlist setcmdpos setloclist setpos setreg settabwinvar shellescape sin sort spellbadword split str2float strchars strftime string strpart strtrans submatch synconcealed synIDattr synstack tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree virtcol winbufnr winheight winnr winrestview winwidth 74*74cbdf03SBram Moolenaarsyn keyword vimFuncName contained acos argc asin browse buflisted bufnr byteidx changenr clearmatches complete_add copy count deepcopy diff_filler escape executable expand feedkeys filter float2nr fnameescape foldclosedend foldtextresult garbagecollect getbufvar getcmdline getcwd getfsize getline getpid getreg gettabwinvar getwinvar has hasmapto histget hlID indent inputdialog inputsave isdirectory join libcall line2byte log maparg matchadd matchend max mkdir mzeval nr2char pow printf range reltime remote_expr remote_peek remote_send rename resolve round searchdecl searchpairpos server2client setbufvar setline setmatches setqflist settabvar setwinvar simplify sinh soundfold spellsuggest sqrt str2nr strdisplaywidth stridx strlen strridx strwidth substitute synID synIDtrans system tabpagenr tagfiles tan tempname toupper trunc undofile values visualmode wincol winline winrestcmd winsaveview writefile 75*74cbdf03SBram Moolenaarsyn keyword vimFuncName contained add argidx atan browsedir bufloaded bufwinnr call char2nr col complete_check cos cscope_connection delete diff_hlID eval exists expr8 filereadable finddir floor fnamemodify foldlevel foreground get getchar getcmdpos getfontname getftime getloclist getpos getregtype getwinposx glob has_key histadd histnr hostname index inputlist inputsecret islocked keys libcallnr lispindent log10 mapcheck matcharg matchlist 76071d4279SBram Moolenaar 77071d4279SBram Moolenaar"--- syntax above generated by mkvimvim --- 78cfbc5ee4SBram Moolenaar" Special Vim Highlighting (not automatic) {{{1 79071d4279SBram Moolenaar 80fa01c39dSBram Moolenaar" commands not picked up by the generator (due to non-standard format) 81fa01c39dSBram Moolenaarsyn keyword vimCommand contained py3 82fa01c39dSBram Moolenaar 833577c6faSBram Moolenaar" Deprecated variable options {{{2 843577c6faSBram Moolenaarif exists("g:vim_minlines") 853577c6faSBram Moolenaar let g:vimsyn_minlines= g:vim_minlines 863577c6faSBram Moolenaarendif 873577c6faSBram Moolenaarif exists("g:vim_maxlines") 883577c6faSBram Moolenaar let g:vimsyn_maxlines= g:vim_maxlines 893577c6faSBram Moolenaarendif 903577c6faSBram Moolenaarif exists("g:vimsyntax_noerror") 913577c6faSBram Moolenaar let g:vimsyn_noerror= g:vimsyntax_noerror 923577c6faSBram Moolenaarendif 933577c6faSBram Moolenaar 94cfbc5ee4SBram Moolenaar" Numbers {{{2 95071d4279SBram Moolenaar" ======= 96071d4279SBram Moolenaarsyn match vimNumber "\<\d\+\([lL]\|\.\d\+\)\=" 97071d4279SBram Moolenaarsyn match vimNumber "-\d\+\([lL]\|\.\d\+\)\=" 98071d4279SBram Moolenaarsyn match vimNumber "\<0[xX]\x\+" 99071d4279SBram Moolenaarsyn match vimNumber "#\x\{6}" 100071d4279SBram Moolenaar 101cfbc5ee4SBram Moolenaar" All vimCommands are contained by vimIsCommands. {{{2 102071d4279SBram Moolenaarsyn match vimCmdSep "[:|]\+" skipwhite nextgroup=vimAddress,vimAutoCmd,vimCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd 103293ee4d4SBram Moolenaarsyn match vimIsCommand "\<\h\w*\>" contains=vimCommand 104071d4279SBram Moolenaarsyn match vimVar "\<[bwglsav]:\K\k*\>" 105071d4279SBram Moolenaarsyn match vimVar contained "\<\K\k*\>" 1065c73622aSBram Moolenaarsyn match vimFBVar contained "\<[bwglsav]:\K\k*\>" 1073b1ddfedSBram Moolenaarsyn keyword vimCommand contained in 108071d4279SBram Moolenaar 109cfbc5ee4SBram Moolenaar" Insertions And Appends: insert append {{{2 110071d4279SBram Moolenaar" ======================= 111071d4279SBram Moolenaarsyn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=a\%[ppend]$" matchgroup=vimCommand end="^\.$"" 112071d4279SBram Moolenaarsyn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=c\%[hange]$" matchgroup=vimCommand end="^\.$"" 113071d4279SBram Moolenaarsyn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=i\%[nsert]$" matchgroup=vimCommand end="^\.$"" 114071d4279SBram Moolenaar 115cfbc5ee4SBram Moolenaar" Behave! {{{2 116071d4279SBram Moolenaar" ======= 117071d4279SBram Moolenaarsyn match vimBehave "\<be\%[have]\>" skipwhite nextgroup=vimBehaveModel,vimBehaveError 118071d4279SBram Moolenaarsyn keyword vimBehaveModel contained mswin xterm 1193577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 120071d4279SBram Moolenaar syn match vimBehaveError contained "[^ ]\+" 121cfbc5ee4SBram Moolenaarendif 122071d4279SBram Moolenaar 123cfbc5ee4SBram Moolenaar" Filetypes {{{2 124071d4279SBram Moolenaar" ========= 125293ee4d4SBram Moolenaarsyn match vimFiletype "\<filet\%[ype]\(\s\+\I\i*\)*" skipwhite contains=vimFTCmd,vimFTOption,vimFTError 1263577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 127071d4279SBram Moolenaar syn match vimFTError contained "\I\i*" 128cfbc5ee4SBram Moolenaarendif 129071d4279SBram Moolenaarsyn keyword vimFTCmd contained filet[ype] 130071d4279SBram Moolenaarsyn keyword vimFTOption contained detect indent off on plugin 131071d4279SBram Moolenaar 132cfbc5ee4SBram Moolenaar" Augroup : vimAugroupError removed because long augroups caused sync'ing problems. {{{2 133071d4279SBram Moolenaar" ======= : Trade-off: Increasing synclines with slower editing vs augroup END error checking. 1345c73622aSBram Moolenaarsyn cluster vimAugroupList contains=vimIsCommand,vimFuncName,vimFunction,vimFunctionError,vimLineComment,vimSpecFile,vimOper,vimNumber,vimOperParen,vimComment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue 1353577c6faSBram Moolenaarif exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'a' 1363577c6faSBram Moolenaar syn region vimAugroup fold start="\<aug\%[roup]\>\s\+\K\k*" end="\<aug\%[roup]\>\s\+[eE][nN][dD]\>" contains=vimAugroupKey,vimAutoCmd,@vimAugroupList keepend 1373577c6faSBram Moolenaarelse 138071d4279SBram Moolenaar syn region vimAugroup start="\<aug\%[roup]\>\s\+\K\k*" end="\<aug\%[roup]\>\s\+[eE][nN][dD]\>" contains=vimAugroupKey,vimAutoCmd,@vimAugroupList keepend 1393577c6faSBram Moolenaarendif 1403b1ddfedSBram Moolenaarsyn match vimAugroup "aug\%[roup]!" contains=vimAugroupKey 1413577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 142071d4279SBram Moolenaar syn match vimAugroupError "\<aug\%[roup]\>\s\+[eE][nN][dD]\>" 143cfbc5ee4SBram Moolenaarendif 144071d4279SBram Moolenaarsyn keyword vimAugroupKey contained aug[roup] 145071d4279SBram Moolenaar 146cfbc5ee4SBram Moolenaar" Operators: {{{2 147071d4279SBram Moolenaar" ========= 1485c73622aSBram Moolenaarsyn cluster vimOperGroup contains=vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimRegister,vimContinue 149071d4279SBram Moolenaarsyn match vimOper "\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\)[?#]\{0,2}" skipwhite nextgroup=vimString,vimSpecFile 150071d4279SBram Moolenaarsyn match vimOper "||\|&&\|[-+.]" skipwhite nextgroup=vimString,vimSpecFile 1515c73622aSBram Moolenaarsyn region vimOperParen oneline matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup 1525c73622aSBram Moolenaarsyn region vimOperParen oneline matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar 1533577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 154071d4279SBram Moolenaar syn match vimOperError ")" 155cfbc5ee4SBram Moolenaarendif 156071d4279SBram Moolenaar 1573577c6faSBram Moolenaar" Functions : Tag is provided for those who wish to highlight tagged functions {{{2 1583577c6faSBram Moolenaar" ========= 1595c73622aSBram Moolenaarsyn cluster vimFuncList contains=vimCommand,vimFunctionError,vimFuncKey,Tag,vimFuncSID 1605c73622aSBram Moolenaarsyn cluster vimFuncBodyList contains=vimAbb,vimAddress,vimAugroupKey,vimAutoCmd,vimCmplxRepeat,vimComment,vimComment,vimContinue,vimCtrlChar,vimEcho,vimEchoHL,vimExecute,vimIf,vimIsCommand,vimFBVar,vimFunc,vimFunction,vimFuncVar,vimHighlight,vimIsCommand,vimLet,vimLineComment,vimMap,vimMark,vimNorm,vimNotation,vimNotFunc,vimNumber,vimOper,vimOperParen,vimRegion,vimRegister,vimSet,vimSpecFile,vimString,vimSubst,vimSynLine,vimUserCommand 1615c73622aSBram Moolenaarsyn match vimFunction "\<fu\%[nction]!\=\s\+\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)*\ze\s*(" contains=@vimFuncList nextgroup=vimFuncBody 1625c73622aSBram Moolenaar 1633577c6faSBram Moolenaarif exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'f' 1643577c6faSBram Moolenaar syn region vimFuncBody contained fold start="\ze(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList 1653577c6faSBram Moolenaarelse 1663577c6faSBram Moolenaar syn region vimFuncBody contained start="\ze(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList 1673577c6faSBram Moolenaarendif 1685c73622aSBram Moolenaarsyn match vimFuncVar contained "a:\(\K\k*\|\d\+\)" 1693577c6faSBram Moolenaarsyn match vimFuncSID contained "\c<sid>\|\<s:" 1703577c6faSBram Moolenaarsyn keyword vimFuncKey contained fu[nction] 1713577c6faSBram Moolenaarsyn match vimFuncBlank contained "\s\+" 1723577c6faSBram Moolenaar 1733577c6faSBram Moolenaarsyn keyword vimPattern contained start skip end 1743577c6faSBram Moolenaar 175cfbc5ee4SBram Moolenaar" Special Filenames, Modifiers, Extension Removal: {{{2 176071d4279SBram Moolenaar" =============================================== 177071d4279SBram Moolenaarsyn match vimSpecFile "<c\(word\|WORD\)>" nextgroup=vimSpecFileMod,vimSubst 178071d4279SBram Moolenaarsyn match vimSpecFile "<\([acs]file\|amatch\|abuf\)>" nextgroup=vimSpecFileMod,vimSubst 179071d4279SBram Moolenaarsyn match vimSpecFile "\s%[ \t:]"ms=s+1,me=e-1 nextgroup=vimSpecFileMod,vimSubst 180071d4279SBram Moolenaarsyn match vimSpecFile "\s%$"ms=s+1 nextgroup=vimSpecFileMod,vimSubst 181071d4279SBram Moolenaarsyn match vimSpecFile "\s%<"ms=s+1,me=e-1 nextgroup=vimSpecFileMod,vimSubst 182071d4279SBram Moolenaarsyn match vimSpecFile "#\d\+\|[#%]<\>" nextgroup=vimSpecFileMod,vimSubst 183071d4279SBram Moolenaarsyn match vimSpecFileMod "\(:[phtre]\)\+" contained 184071d4279SBram Moolenaar 185cfbc5ee4SBram Moolenaar" User-Specified Commands: {{{2 186071d4279SBram Moolenaar" ======================= 1875c73622aSBram Moolenaarsyn cluster vimUserCmdList contains=vimAddress,vimSyntax,vimHighlight,vimAutoCmd,vimCmplxRepeat,vimComment,vimCtrlChar,vimEscapeBrace,vimFilter,vimFunc,vimFuncName,vimFunction,vimFunctionError,vimIsCommand,vimMark,vimNotation,vimNumber,vimOper,vimRegion,vimRegister,vimLet,vimSet,vimSetEqual,vimSetString,vimSpecFile,vimString,vimSubst,vimSubstRep,vimSubstRange,vimSynLine 188071d4279SBram Moolenaarsyn keyword vimUserCommand contained com[mand] 189071d4279SBram Moolenaarsyn match vimUserCmd "\<com\%[mand]!\=\>.*$" contains=vimUserAttrb,vimUserCommand,@vimUserCmdList 190071d4279SBram Moolenaarsyn match vimUserAttrb contained "-n\%[args]=[01*?+]" contains=vimUserAttrbKey,vimOper 191071d4279SBram Moolenaarsyn match vimUserAttrb contained "-com\%[plete]=" contains=vimUserAttrbKey,vimOper nextgroup=vimUserAttrbCmplt,vimUserCmdError 192071d4279SBram Moolenaarsyn match vimUserAttrb contained "-ra\%[nge]\(=%\|=\d\+\)\=" contains=vimNumber,vimOper,vimUserAttrbKey 193071d4279SBram Moolenaarsyn match vimUserAttrb contained "-cou\%[nt]=\d\+" contains=vimNumber,vimOper,vimUserAttrbKey 194071d4279SBram Moolenaarsyn match vimUserAttrb contained "-bang\=\>" contains=vimOper,vimUserAttrbKey 195071d4279SBram Moolenaarsyn match vimUserAttrb contained "-bar\>" contains=vimOper,vimUserAttrbKey 196071d4279SBram Moolenaarsyn match vimUserAttrb contained "-re\%[gister]\>" contains=vimOper,vimUserAttrbKey 1973577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 198071d4279SBram Moolenaar syn match vimUserCmdError contained "\S\+\>" 199cfbc5ee4SBram Moolenaarendif 200071d4279SBram Moolenaarsyn case ignore 201071d4279SBram Moolenaarsyn keyword vimUserAttrbKey contained bar ban[g] cou[nt] ra[nge] com[plete] n[args] re[gister] 2025c73622aSBram Moolenaarsyn keyword vimUserAttrbCmplt contained augroup buffer command dir environment event expression file function help highlight mapping menu option shellcmd something tag tag_listfiles var 203a93fa7eeSBram Moolenaarsyn keyword vimUserAttrbCmplt contained custom customlist nextgroup=vimUserAttrbCmpltFunc,vimUserCmdError 2049964e468SBram Moolenaarsyn match vimUserAttrbCmpltFunc contained ",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\u\w*\)\+\|\u\w*\)"hs=s+1 nextgroup=vimUserCmdError 205a93fa7eeSBram Moolenaar 206071d4279SBram Moolenaarsyn case match 207071d4279SBram Moolenaarsyn match vimUserAttrbCmplt contained "custom,\u\w*" 208071d4279SBram Moolenaar 209cfbc5ee4SBram Moolenaar" Lower Priority Comments: after some vim commands... {{{2 210071d4279SBram Moolenaar" ======================= 211071d4279SBram Moolenaarsyn match vimComment excludenl +\s"[^\-:.%#=*].*$+lc=1 contains=@vimCommentGroup,vimCommentString 212071d4279SBram Moolenaarsyn match vimComment +\<endif\s\+".*$+lc=5 contains=@vimCommentGroup,vimCommentString 213071d4279SBram Moolenaarsyn match vimComment +\<else\s\+".*$+lc=4 contains=@vimCommentGroup,vimCommentString 2144770d09aSBram Moolenaarsyn region vimCommentString contained oneline start='\S\s\+"'ms=e end='"' 215071d4279SBram Moolenaar 216cfbc5ee4SBram Moolenaar" Environment Variables: {{{2 217071d4279SBram Moolenaar" ===================== 218071d4279SBram Moolenaarsyn match vimEnvvar "\$\I\i*" 219071d4279SBram Moolenaarsyn match vimEnvvar "\${\I\i*}" 220071d4279SBram Moolenaar 221cfbc5ee4SBram Moolenaar" In-String Specials: {{{2 222071d4279SBram Moolenaar" Try to catch strings, if nothing else matches (therefore it must precede the others!) 223071d4279SBram Moolenaar" vimEscapeBrace handles ["] []"] (ie. "s don't terminate string inside []) 224d68071d8SBram Moolenaarsyn region vimEscapeBrace oneline contained transparent start="[^\\]\(\\\\\)*\[\zs\^\=\]\=" skip="\\\\\|\\\]" end="]"me=e-1 225071d4279SBram Moolenaarsyn match vimPatSepErr contained "\\)" 226071d4279SBram Moolenaarsyn match vimPatSep contained "\\|" 227383f9bc3SBram Moolenaarsyn region vimPatSepZone oneline contained matchgroup=vimPatSepZ start="\\%\=\ze(" skip="\\\\" end="\\)\|[^\]['"]" contains=@vimStringGroup 228383f9bc3SBram Moolenaarsyn region vimPatRegion contained transparent matchgroup=vimPatSepR start="\\[z%]\=(" end="\\)" contains=@vimSubstList oneline 229071d4279SBram Moolenaarsyn match vimNotPatSep contained "\\\\" 2309964e468SBram Moolenaarsyn cluster vimStringGroup contains=vimEscapeBrace,vimPatSep,vimNotPatSep,vimPatSepErr,vimPatSepZone,@Spell 2315b8d8fdbSBram Moolenaarsyn region vimString oneline keepend start=+[^:a-zA-Z>!\\@]"+lc=1 skip=+\\\\\|\\"+ end=+"+ contains=@vimStringGroup 2328b6144bdSBram Moolenaarsyn region vimString oneline keepend start=+[^:a-zA-Z>!\\@]'+lc=1 end=+'+ 233071d4279SBram Moolenaarsyn region vimString oneline start=+=!+lc=1 skip=+\\\\\|\\!+ end=+!+ contains=@vimStringGroup 234071d4279SBram Moolenaarsyn region vimString oneline start="=+"lc=1 skip="\\\\\|\\+" end="+" contains=@vimStringGroup 235071d4279SBram Moolenaarsyn region vimString oneline start="\s/\s*\A"lc=1 skip="\\\\\|\\+" end="/" contains=@vimStringGroup 236071d4279SBram Moolenaarsyn match vimString contained +"[^"]*\\$+ skipnl nextgroup=vimStringCont 237071d4279SBram Moolenaarsyn match vimStringCont contained +\(\\\\\|.\)\{-}[^\\]"+ 238071d4279SBram Moolenaar 239cfbc5ee4SBram Moolenaar" Substitutions: {{{2 240071d4279SBram Moolenaar" ============= 241071d4279SBram Moolenaarsyn cluster vimSubstList contains=vimPatSep,vimPatRegion,vimPatSepErr,vimSubstTwoBS,vimSubstRange,vimNotation 242071d4279SBram Moolenaarsyn cluster vimSubstRepList contains=vimSubstSubstr,vimSubstTwoBS,vimNotation 243071d4279SBram Moolenaarsyn cluster vimSubstList add=vimCollection 244071d4279SBram Moolenaarsyn match vimSubst "\(:\+\s*\|^\s*\||\s*\)\<s\%[ubstitute][:[:alpha:]]\@!" nextgroup=vimSubstPat 2455c73622aSBram Moolenaarsyn match vimSubst "s\%[ubstitute][:#[:alpha:]]\@!" nextgroup=vimSubstPat contained 246071d4279SBram Moolenaarsyn match vimSubst "/\zss\%[ubstitute]\ze/" nextgroup=vimSubstPat 247071d4279SBram Moolenaarsyn match vimSubst1 contained "s\%[ubstitute]\>" nextgroup=vimSubstPat 248071d4279SBram Moolenaarsyn region vimSubstPat contained matchgroup=vimSubstDelim start="\z([^a-zA-Z( \t[\]&]\)"rs=s+1 skip="\\\\\|\\\z1" end="\z1"re=e-1,me=e-1 contains=@vimSubstList nextgroup=vimSubstRep4 oneline 249071d4279SBram Moolenaarsyn region vimSubstRep4 contained matchgroup=vimSubstDelim start="\z(.\)" skip="\\\\\|\\\z1" end="\z1" matchgroup=vimNotation end="<[cC][rR]>" contains=@vimSubstRepList nextgroup=vimSubstFlagErr oneline 250071d4279SBram Moolenaarsyn region vimCollection contained transparent start="\\\@<!\[" skip="\\\[" end="\]" contains=vimCollClass 251071d4279SBram Moolenaarsyn match vimCollClassErr contained "\[:.\{-\}:\]" 252071d4279SBram Moolenaarsyn match vimCollClass contained transparent "\[:\(alnum\|alpha\|blank\|cntrl\|digit\|graph\|lower\|print\|punct\|space\|upper\|xdigit\|return\|tab\|escape\|backspace\):\]" 253071d4279SBram Moolenaarsyn match vimSubstSubstr contained "\\z\=\d" 254071d4279SBram Moolenaarsyn match vimSubstTwoBS contained "\\\\" 255a5792f58SBram Moolenaarsyn match vimSubstFlagErr contained "[^< \t\r|]\+" contains=vimSubstFlags 256071d4279SBram Moolenaarsyn match vimSubstFlags contained "[&cegiIpr]\+" 257071d4279SBram Moolenaar 258cfbc5ee4SBram Moolenaar" 'String': {{{2 2598b6144bdSBram Moolenaarsyn match vimString "[^(,]'[^']\{-}\zs'" 260071d4279SBram Moolenaar 261cfbc5ee4SBram Moolenaar" Marks, Registers, Addresses, Filters: {{{2 262071d4279SBram Moolenaarsyn match vimMark "'[a-zA-Z0-9]\ze[-+,!]" nextgroup=vimOper,vimMarkNumber,vimSubst 263071d4279SBram Moolenaarsyn match vimMark "'[<>]\ze[-+,!]" nextgroup=vimOper,vimMarkNumber,vimSubst 264071d4279SBram Moolenaarsyn match vimMark ",\zs'[<>]\ze" nextgroup=vimOper,vimMarkNumber,vimSubst 265071d4279SBram Moolenaarsyn match vimMark "[!,:]\zs'[a-zA-Z0-9]" nextgroup=vimOper,vimMarkNumber,vimSubst 266071d4279SBram Moolenaarsyn match vimMark "\<norm\%[al]\s\zs'[a-zA-Z0-9]" nextgroup=vimOper,vimMarkNumber,vimSubst 267071d4279SBram Moolenaarsyn match vimMarkNumber "[-+]\d\+" nextgroup=vimSubst contained contains=vimOper 268071d4279SBram Moolenaarsyn match vimPlainMark contained "'[a-zA-Z0-9]" 269071d4279SBram Moolenaar 2705c73622aSBram Moolenaarsyn match vimRegister '[^,;[{]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":]' 2715b8d8fdbSBram Moolenaarsyn match vimRegister '\<norm\s\+\zs"[a-zA-Z0-9]' 2725b8d8fdbSBram Moolenaarsyn match vimRegister '\<normal\s\+\zs"[a-zA-Z0-9]' 273cfbc5ee4SBram Moolenaarsyn match vimRegister '@"' 274071d4279SBram Moolenaarsyn match vimPlainRegister contained '"[a-zA-Z0-9\-:.%#*+=]' 275071d4279SBram Moolenaar 2765b8d8fdbSBram Moolenaarsyn match vimAddress ",\zs[.$]" skipwhite nextgroup=vimSubst1 2775b8d8fdbSBram Moolenaarsyn match vimAddress "%\ze\a" skipwhite nextgroup=vimString,vimSubst1 278071d4279SBram Moolenaar 279071d4279SBram Moolenaarsyn match vimFilter contained "^!.\{-}\(|\|$\)" contains=vimSpecFile 280071d4279SBram Moolenaarsyn match vimFilter contained "\A!.\{-}\(|\|$\)"ms=s+1 contains=vimSpecFile 281071d4279SBram Moolenaar 282cfbc5ee4SBram Moolenaar" Complex repeats (:h complex-repeat) {{{2 2835c73622aSBram Moolenaarsyn match vimCmplxRepeat '[^a-zA-Z_/\\()]q[0-9a-zA-Z"]'lc=1 2845c73622aSBram Moolenaarsyn match vimCmplxRepeat '@[0-9a-z".=@:]\ze\($\|[^a-zA-Z]\)' 285071d4279SBram Moolenaar 286cfbc5ee4SBram Moolenaar" Set command and associated set-options (vimOptions) with comment {{{2 287*74cbdf03SBram Moolenaarsyn region vimSet matchgroup=vimCommand start="\<\%(setl\%[ocal]\|setg\%[lobal]\|se\%[t]\)\>" skip="\%(\\\\\)*\\." end="$" matchgroup=vimNotation end="<[cC][rR]>" keepend oneline contains=vimSetEqual,vimOption,vimErrSetting,vimComment,vimSetString,vimSetMod 2885c73622aSBram Moolenaarsyn region vimSetEqual contained start="[=:]\|[-+^]=" skip="\\\\\|\\\s" end="[| \t]\|$"me=e-1 contains=vimCtrlChar,vimSetSep,vimNotation oneline 289071d4279SBram Moolenaarsyn region vimSetString contained start=+="+hs=s+1 skip=+\\\\\|\\"+ end=+"+ contains=vimCtrlChar 290071d4279SBram Moolenaarsyn match vimSetSep contained "[,:]" 2915c73622aSBram Moolenaarsyn match vimSetMod contained "&vim\=\|[!&?<]\|all&" 292071d4279SBram Moolenaar 293cfbc5ee4SBram Moolenaar" Let {{{2 294071d4279SBram Moolenaar" === 2955c73622aSBram Moolenaarsyn keyword vimLet let unl[et] skipwhite nextgroup=vimVar,vimFuncVar 296071d4279SBram Moolenaar 297e37d50a5SBram Moolenaar" Abbreviations {{{2 298e37d50a5SBram Moolenaar" ============= 299e37d50a5SBram Moolenaarsyn keyword vimAbb ab[breviate] ca[bbrev] inorea[bbrev] cnorea[bbrev] norea[bbrev] ia[bbrev] skipwhite nextgroup=vimMapMod,vimMapLhs 300e37d50a5SBram Moolenaar 301cfbc5ee4SBram Moolenaar" Autocmd {{{2 302071d4279SBram Moolenaar" ======= 303071d4279SBram Moolenaarsyn match vimAutoEventList contained "\(!\s\+\)\=\(\a\+,\)*\a\+" contains=vimAutoEvent nextgroup=vimAutoCmdSpace 304071d4279SBram Moolenaarsyn match vimAutoCmdSpace contained "\s\+" nextgroup=vimAutoCmdSfxList 305071d4279SBram Moolenaarsyn match vimAutoCmdSfxList contained "\S*" 306071d4279SBram Moolenaarsyn keyword vimAutoCmd au[tocmd] do[autocmd] doautoa[ll] skipwhite nextgroup=vimAutoEventList 307071d4279SBram Moolenaar 308cfbc5ee4SBram Moolenaar" Echo and Execute -- prefer strings! {{{2 309071d4279SBram Moolenaar" ================ 3105c73622aSBram Moolenaarsyn region vimEcho oneline excludenl matchgroup=vimCommand start="\<ec\%[ho]\>" skip="\(\\\\\)*\\|" end="$\||" contains=vimFunc,vimFuncVar,vimString,vimVar 3115c73622aSBram Moolenaarsyn region vimExecute oneline excludenl matchgroup=vimCommand start="\<exe\%[cute]\>" skip="\(\\\\\)*\\|" end="$\||\|<[cC][rR]>" contains=vimFuncVar,vimIsCommand,vimOper,vimNotation,vimOperParen,vimString,vimVar 312071d4279SBram Moolenaarsyn match vimEchoHL "echohl\=" skipwhite nextgroup=vimGroup,vimHLGroup,vimEchoHLNone 313071d4279SBram Moolenaarsyn case ignore 314071d4279SBram Moolenaarsyn keyword vimEchoHLNone none 315071d4279SBram Moolenaarsyn case match 316071d4279SBram Moolenaar 317cfbc5ee4SBram Moolenaar" Maps {{{2 318071d4279SBram Moolenaar" ==== 3193577c6faSBram Moolenaarsyn match vimMap "\<map\>!\=\ze\s*[^(]" skipwhite nextgroup=vimMapMod,vimMapLhs 3205c73622aSBram Moolenaarsyn keyword vimMap cm[ap] cno[remap] im[ap] ino[remap] lm[ap] ln[oremap] nm[ap] nn[oremap] no[remap] om[ap] ono[remap] smap snor[emap] vm[ap] vn[oremap] xm[ap] xn[oremap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs 3213577c6faSBram Moolenaarsyn keyword vimMap mapc[lear] 3225c73622aSBram Moolenaarsyn keyword vimUnmap cu[nmap] iu[nmap] lu[nmap] nun[map] ou[nmap] sunm[ap] unm[ap] unm[ap] vu[nmap] xu[nmap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs 323b8a7b560SBram Moolenaarsyn match vimMapLhs contained "\S\+" contains=vimNotation,vimCtrlChar skipwhite nextgroup=vimMapRhs 324b8a7b560SBram Moolenaarsyn match vimMapBang contained "!" skipwhite nextgroup=vimMapMod,vimMapLhs 32525e2c9e3SBram Moolenaarsyn match vimMapMod contained "\c<\(buffer\|expr\|\(local\)\=leader\|plug\|script\|sid\|unique\|silent\)\+>" contains=vimMapModKey,vimMapModErr skipwhite nextgroup=vimMapMod,vimMapLhs 326b8a7b560SBram Moolenaarsyn match vimMapRhs contained ".*" contains=vimNotation,vimCtrlChar skipnl nextgroup=vimMapRhsExtend 327b8a7b560SBram Moolenaarsyn match vimMapRhsExtend contained "^\s*\\.*$" contains=vimContinue 328071d4279SBram Moolenaarsyn case ignore 32925e2c9e3SBram Moolenaarsyn keyword vimMapModKey contained buffer expr leader localleader plug script sid silent unique 330071d4279SBram Moolenaarsyn case match 331071d4279SBram Moolenaar 332cfbc5ee4SBram Moolenaar" Menus {{{2 333071d4279SBram Moolenaar" ===== 334071d4279SBram Moolenaarsyn cluster vimMenuList contains=vimMenuBang,vimMenuPriority,vimMenuName,vimMenuMod 335071d4279SBram Moolenaarsyn keyword vimCommand am[enu] an[oremenu] aun[menu] cme[nu] cnoreme[nu] cunme[nu] ime[nu] inoreme[nu] iunme[nu] me[nu] nme[nu] nnoreme[nu] noreme[nu] nunme[nu] ome[nu] onoreme[nu] ounme[nu] unme[nu] vme[nu] vnoreme[nu] vunme[nu] skipwhite nextgroup=@vimMenuList 336071d4279SBram Moolenaarsyn match vimMenuName "[^ \t\\<]\+" contained nextgroup=vimMenuNameMore,vimMenuMap 337071d4279SBram Moolenaarsyn match vimMenuPriority "\d\+\(\.\d\+\)*" contained skipwhite nextgroup=vimMenuName 338071d4279SBram Moolenaarsyn match vimMenuNameMore "\c\\\s\|<tab>\|\\\." contained nextgroup=vimMenuName,vimMenuNameMore contains=vimNotation 339071d4279SBram Moolenaarsyn match vimMenuMod contained "\c<\(script\|silent\)\+>" skipwhite contains=vimMapModKey,vimMapModErr nextgroup=@vimMenuList 340071d4279SBram Moolenaarsyn match vimMenuMap "\s" contained skipwhite nextgroup=vimMenuRhs 341071d4279SBram Moolenaarsyn match vimMenuRhs ".*$" contained contains=vimString,vimComment,vimIsCommand 342071d4279SBram Moolenaarsyn match vimMenuBang "!" contained skipwhite nextgroup=@vimMenuList 343071d4279SBram Moolenaar 344cfbc5ee4SBram Moolenaar" Angle-Bracket Notation (tnx to Michael Geddes) {{{2 345071d4279SBram Moolenaar" ====================== 346071d4279SBram Moolenaarsyn case ignore 3479964e468SBram Moolenaarsyn match vimNotation "\(\\\|<lt>\)\=<\([scamd]-\)\{0,4}x\=\(f\d\{1,2}\|[^ \t:]\|cr\|lf\|linefeed\|return\|k\=del\%[ete]\|bs\|backspace\|tab\|esc\|right\|left\|help\|undo\|insert\|ins\|k\=home\|k\=end\|kplus\|kminus\|kdivide\|kmultiply\|kenter\|space\|k\=\(page\)\=\(\|down\|up\)\)>" contains=vimBracket 348071d4279SBram Moolenaarsyn match vimNotation "\(\\\|<lt>\)\=<\([scam2-4]-\)\{0,4}\(right\|left\|middle\)\(mouse\)\=\(drag\|release\)\=>" contains=vimBracket 349071d4279SBram Moolenaarsyn match vimNotation "\(\\\|<lt>\)\=<\(bslash\|plug\|sid\|space\|bar\|nop\|nul\|lt\)>" contains=vimBracket 350071d4279SBram Moolenaarsyn match vimNotation '\(\\\|<lt>\)\=<C-R>[0-9a-z"%#:.\-=]'he=e-1 contains=vimBracket 351d68071d8SBram Moolenaarsyn match vimNotation '\(\\\|<lt>\)\=<\%(q-\)\=\(line[12]\|count\|bang\|reg\|args\|f-args\|lt\)>' contains=vimBracket 352071d4279SBram Moolenaarsyn match vimNotation "\(\\\|<lt>\)\=<\([cas]file\|abuf\|amatch\|cword\|cWORD\|client\)>" contains=vimBracket 353071d4279SBram Moolenaarsyn match vimBracket contained "[\\<>]" 354071d4279SBram Moolenaarsyn case match 355071d4279SBram Moolenaar 3563577c6faSBram Moolenaar" User Function Highlighting {{{2 3573577c6faSBram Moolenaar" (following Gautam Iyer's suggestion) 358071d4279SBram Moolenaar" ========================== 3595c73622aSBram Moolenaarsyn match vimFunc "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_.]\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*(" contains=vimFuncName,vimUserFunc,vimExecute 3605c73622aSBram Moolenaarsyn match vimUserFunc contained "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_.]\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>" contains=vimNotation 3615c73622aSBram Moolenaarsyn match vimNotFunc "\<if\>\|\<el\%[seif]\>\|\<return\>\|\<while\>" 362071d4279SBram Moolenaar 3633577c6faSBram Moolenaar" Errors And Warnings: {{{2 3643577c6faSBram Moolenaar" ==================== 3653577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 3665c73622aSBram Moolenaar syn match vimFunctionError "\s\zs[a-z0-9]\i\{-}\ze\s*(" contained contains=vimFuncKey,vimFuncBlank 3675c73622aSBram Moolenaar" syn match vimFunctionError "\s\zs\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)[0-9]\i\{-}\ze\s*(" contained contains=vimFuncKey,vimFuncBlank 3683577c6faSBram Moolenaar syn match vimElseIfErr "\<else\s\+if\>" 3693577c6faSBram Moolenaar syn match vimBufnrWarn /\<bufnr\s*(\s*["']\.['"]\s*)/ 3703577c6faSBram Moolenaarendif 3713577c6faSBram Moolenaar 3723577c6faSBram Moolenaar" Norm {{{2 37305159a0cSBram Moolenaar" ==== 37405159a0cSBram Moolenaarsyn match vimNorm "\<norm\%[al]!\=" skipwhite nextgroup=vimNormCmds 37505159a0cSBram Moolenaarsyn match vimNormCmds contained ".*$" 37605159a0cSBram Moolenaar 377cfbc5ee4SBram Moolenaar" Syntax {{{2 378071d4279SBram Moolenaar"======= 379071d4279SBram Moolenaarsyn match vimGroupList contained "@\=[^ \t,]*" contains=vimGroupSpecial,vimPatSep 380071d4279SBram Moolenaarsyn match vimGroupList contained "@\=[^ \t,]*," nextgroup=vimGroupList contains=vimGroupSpecial,vimPatSep 3815c73622aSBram Moolenaarsyn keyword vimGroupSpecial contained ALL ALLBUT CONTAINED TOP 3823577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 383071d4279SBram Moolenaar syn match vimSynError contained "\i\+" 384071d4279SBram Moolenaar syn match vimSynError contained "\i\+=" nextgroup=vimGroupList 385cfbc5ee4SBram Moolenaarendif 386071d4279SBram Moolenaarsyn match vimSynContains contained "\<contain\(s\|edin\)=" nextgroup=vimGroupList 387071d4279SBram Moolenaarsyn match vimSynKeyContainedin contained "\<containedin=" nextgroup=vimGroupList 388071d4279SBram Moolenaarsyn match vimSynNextgroup contained "nextgroup=" nextgroup=vimGroupList 389071d4279SBram Moolenaar 390071d4279SBram Moolenaarsyn match vimSyntax "\<sy\%[ntax]\>" contains=vimCommand skipwhite nextgroup=vimSynType,vimComment 391071d4279SBram Moolenaarsyn match vimAuSyntax contained "\s+sy\%[ntax]" contains=vimCommand skipwhite nextgroup=vimSynType,vimComment 392071d4279SBram Moolenaar 393cfbc5ee4SBram Moolenaar" Syntax: case {{{2 394071d4279SBram Moolenaarsyn keyword vimSynType contained case skipwhite nextgroup=vimSynCase,vimSynCaseError 3953577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 396071d4279SBram Moolenaar syn match vimSynCaseError contained "\i\+" 397cfbc5ee4SBram Moolenaarendif 398071d4279SBram Moolenaarsyn keyword vimSynCase contained ignore match 399071d4279SBram Moolenaar 400cfbc5ee4SBram Moolenaar" Syntax: clear {{{2 401071d4279SBram Moolenaarsyn keyword vimSynType contained clear skipwhite nextgroup=vimGroupList 402071d4279SBram Moolenaar 403cfbc5ee4SBram Moolenaar" Syntax: cluster {{{2 404071d4279SBram Moolenaarsyn keyword vimSynType contained cluster skipwhite nextgroup=vimClusterName 405071d4279SBram Moolenaarsyn region vimClusterName contained matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" matchgroup=vimSep end="$\||" contains=vimGroupAdd,vimGroupRem,vimSynContains,vimSynError 406071d4279SBram Moolenaarsyn match vimGroupAdd contained "add=" nextgroup=vimGroupList 407071d4279SBram Moolenaarsyn match vimGroupRem contained "remove=" nextgroup=vimGroupList 408071d4279SBram Moolenaar 409cfbc5ee4SBram Moolenaar" Syntax: include {{{2 410071d4279SBram Moolenaarsyn keyword vimSynType contained include skipwhite nextgroup=vimGroupList 411071d4279SBram Moolenaar 412cfbc5ee4SBram Moolenaar" Syntax: keyword {{{2 413071d4279SBram Moolenaarsyn cluster vimSynKeyGroup contains=vimSynNextgroup,vimSynKeyOpt,vimSynKeyContainedin 414071d4279SBram Moolenaarsyn keyword vimSynType contained keyword skipwhite nextgroup=vimSynKeyRegion 4153577c6faSBram Moolenaarsyn region vimSynKeyRegion contained oneline keepend matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" matchgroup=vimSep end="|\|$" contains=@vimSynKeyGroup 416071d4279SBram Moolenaarsyn match vimSynKeyOpt contained "\<\(conceal\|contained\|transparent\|skipempty\|skipwhite\|skipnl\)\>" 417071d4279SBram Moolenaar 418cfbc5ee4SBram Moolenaar" Syntax: match {{{2 419071d4279SBram Moolenaarsyn cluster vimSynMtchGroup contains=vimMtchComment,vimSynContains,vimSynError,vimSynMtchOpt,vimSynNextgroup,vimSynRegPat,vimNotation 420071d4279SBram Moolenaarsyn keyword vimSynType contained match skipwhite nextgroup=vimSynMatchRegion 421071d4279SBram Moolenaarsyn region vimSynMatchRegion contained keepend matchgroup=vimGroupName start="\k\+" matchgroup=vimSep end="|\|$" contains=@vimSynMtchGroup 422071d4279SBram Moolenaarsyn match vimSynMtchOpt contained "\<\(conceal\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|extend\|skipnl\|fold\)\>" 423071d4279SBram Moolenaarif has("conceal") 424071d4279SBram Moolenaar syn match vimSynMtchOpt contained "\<cchar=" nextgroup=VimSynMtchCchar 4255c73622aSBram Moolenaar syn match vimSynMtchCchar contained "\S" 426071d4279SBram Moolenaarendif 427071d4279SBram Moolenaar 428cfbc5ee4SBram Moolenaar" Syntax: off and on {{{2 429071d4279SBram Moolenaarsyn keyword vimSynType contained enable list manual off on reset 430071d4279SBram Moolenaar 431cfbc5ee4SBram Moolenaar" Syntax: region {{{2 432071d4279SBram Moolenaarsyn cluster vimSynRegPatGroup contains=vimPatSep,vimNotPatSep,vimSynPatRange,vimSynNotPatRange,vimSubstSubstr,vimPatRegion,vimPatSepErr,vimNotation 433071d4279SBram Moolenaarsyn cluster vimSynRegGroup contains=vimSynContains,vimSynNextgroup,vimSynRegOpt,vimSynReg,vimSynMtchGrp 434071d4279SBram Moolenaarsyn keyword vimSynType contained region skipwhite nextgroup=vimSynRegion 435071d4279SBram Moolenaarsyn region vimSynRegion contained keepend matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" end="|\|$" contains=@vimSynRegGroup 436071d4279SBram Moolenaarsyn match vimSynRegOpt contained "\<\(conceal\(ends\)\=\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|keepend\|oneline\|extend\|skipnl\|fold\)\>" 437071d4279SBram Moolenaarsyn match vimSynReg contained "\(start\|skip\|end\)="he=e-1 nextgroup=vimSynRegPat 438071d4279SBram Moolenaarsyn match vimSynMtchGrp contained "matchgroup=" nextgroup=vimGroup,vimHLGroup 439071d4279SBram Moolenaarsyn region vimSynRegPat contained extend start="\z([-`~!@#$%^&*_=+;:'",./?]\)" skip="\\\\\|\\\z1" end="\z1" contains=@vimSynRegPatGroup skipwhite nextgroup=vimSynPatMod,vimSynReg 440071d4279SBram Moolenaarsyn match vimSynPatMod contained "\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\=" 441071d4279SBram Moolenaarsyn match vimSynPatMod contained "\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\=," nextgroup=vimSynPatMod 442071d4279SBram Moolenaarsyn match vimSynPatMod contained "lc=\d\+" 443071d4279SBram Moolenaarsyn match vimSynPatMod contained "lc=\d\+," nextgroup=vimSynPatMod 444071d4279SBram Moolenaarsyn region vimSynPatRange contained start="\[" skip="\\\\\|\\]" end="]" 445071d4279SBram Moolenaarsyn match vimSynNotPatRange contained "\\\\\|\\\[" 446071d4279SBram Moolenaarsyn match vimMtchComment contained '"[^"]\+$' 447071d4279SBram Moolenaar 448cfbc5ee4SBram Moolenaar" Syntax: sync {{{2 449071d4279SBram Moolenaar" ============ 450df177f67SBram Moolenaarsyn keyword vimSynType contained sync skipwhite nextgroup=vimSyncC,vimSyncLines,vimSyncMatch,vimSyncError,vimSyncLinebreak,vimSyncLinecont,vimSyncRegion 4513577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 452071d4279SBram Moolenaar syn match vimSyncError contained "\i\+" 453cfbc5ee4SBram Moolenaarendif 454071d4279SBram Moolenaarsyn keyword vimSyncC contained ccomment clear fromstart 455071d4279SBram Moolenaarsyn keyword vimSyncMatch contained match skipwhite nextgroup=vimSyncGroupName 456071d4279SBram Moolenaarsyn keyword vimSyncRegion contained region skipwhite nextgroup=vimSynReg 457df177f67SBram Moolenaarsyn match vimSyncLinebreak contained "\<linebreaks=" skipwhite nextgroup=vimNumber 458071d4279SBram Moolenaarsyn keyword vimSyncLinecont contained linecont skipwhite nextgroup=vimSynRegPat 459071d4279SBram Moolenaarsyn match vimSyncLines contained "\(min\|max\)\=lines=" nextgroup=vimNumber 460071d4279SBram Moolenaarsyn match vimSyncGroupName contained "\k\+" skipwhite nextgroup=vimSyncKey 461071d4279SBram Moolenaarsyn match vimSyncKey contained "\<groupthere\|grouphere\>" skipwhite nextgroup=vimSyncGroup 462071d4279SBram Moolenaarsyn match vimSyncGroup contained "\k\+" skipwhite nextgroup=vimSynRegPat,vimSyncNone 463071d4279SBram Moolenaarsyn keyword vimSyncNone contained NONE 464071d4279SBram Moolenaar 465cfbc5ee4SBram Moolenaar" Additional IsCommand, here by reasons of precedence {{{2 466071d4279SBram Moolenaar" ==================== 467071d4279SBram Moolenaarsyn match vimIsCommand "<Bar>\s*\a\+" transparent contains=vimCommand,vimNotation 468071d4279SBram Moolenaar 469cfbc5ee4SBram Moolenaar" Highlighting {{{2 470071d4279SBram Moolenaar" ============ 471071d4279SBram Moolenaarsyn cluster vimHighlightCluster contains=vimHiLink,vimHiClear,vimHiKeyList,vimComment 472071d4279SBram Moolenaarsyn match vimHighlight "\<hi\%[ghlight]\>" skipwhite nextgroup=vimHiBang,@vimHighlightCluster 473071d4279SBram Moolenaarsyn match vimHiBang contained "!" skipwhite nextgroup=@vimHighlightCluster 474071d4279SBram Moolenaar 475071d4279SBram Moolenaarsyn match vimHiGroup contained "\i\+" 476071d4279SBram Moolenaarsyn case ignore 4774770d09aSBram Moolenaarsyn keyword vimHiAttrib contained none bold inverse italic reverse standout underline undercurl 478071d4279SBram Moolenaarsyn keyword vimFgBgAttrib contained none bg background fg foreground 479071d4279SBram Moolenaarsyn case match 480071d4279SBram Moolenaarsyn match vimHiAttribList contained "\i\+" contains=vimHiAttrib 481071d4279SBram Moolenaarsyn match vimHiAttribList contained "\i\+,"he=e-1 contains=vimHiAttrib nextgroup=vimHiAttribList 482071d4279SBram Moolenaarsyn case ignore 483071d4279SBram Moolenaarsyn keyword vimHiCtermColor contained black blue brown cyan darkBlue darkcyan darkgray darkgreen darkgrey darkmagenta darkred darkyellow gray green grey lightblue lightcyan lightgray lightgreen lightgrey lightmagenta lightred magenta red white yellow 484071d4279SBram Moolenaar 485071d4279SBram Moolenaarsyn case match 486071d4279SBram Moolenaarsyn match vimHiFontname contained "[a-zA-Z\-*]\+" 487071d4279SBram Moolenaarsyn match vimHiGuiFontname contained "'[a-zA-Z\-* ]\+'" 488071d4279SBram Moolenaarsyn match vimHiGuiRgb contained "#\x\{6}" 4893577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 490071d4279SBram Moolenaar syn match vimHiCtermError contained "[^0-9]\i*" 491cfbc5ee4SBram Moolenaarendif 492071d4279SBram Moolenaar 493cfbc5ee4SBram Moolenaar" Highlighting: hi group key=arg ... {{{2 4945c73622aSBram Moolenaarsyn cluster vimHiCluster contains=vimGroup,vimHiGroup,vimHiTerm,vimHiCTerm,vimHiStartStop,vimHiCtermFgBg,vimHiGui,vimHiGuiFont,vimHiGuiFgBg,vimHiKeyError,vimNotation 495071d4279SBram Moolenaarsyn region vimHiKeyList contained oneline start="\i\+" skip="\\\\\|\\|" end="$\||" contains=@vimHiCluster 4963577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 497071d4279SBram Moolenaar syn match vimHiKeyError contained "\i\+="he=e-1 498cfbc5ee4SBram Moolenaarendif 499071d4279SBram Moolenaarsyn match vimHiTerm contained "\cterm="he=e-1 nextgroup=vimHiAttribList 500071d4279SBram Moolenaarsyn match vimHiStartStop contained "\c\(start\|stop\)="he=e-1 nextgroup=vimHiTermcap,vimOption 501071d4279SBram Moolenaarsyn match vimHiCTerm contained "\ccterm="he=e-1 nextgroup=vimHiAttribList 502071d4279SBram Moolenaarsyn match vimHiCtermFgBg contained "\ccterm[fb]g="he=e-1 nextgroup=vimNumber,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError 503071d4279SBram Moolenaarsyn match vimHiGui contained "\cgui="he=e-1 nextgroup=vimHiAttribList 504071d4279SBram Moolenaarsyn match vimHiGuiFont contained "\cfont="he=e-1 nextgroup=vimHiFontname 5054770d09aSBram Moolenaarsyn match vimHiGuiFgBg contained "\cgui\%([fb]g\|sp\)="he=e-1 nextgroup=vimHiGroup,vimHiGuiFontname,vimHiGuiRgb,vimFgBgAttrib 506071d4279SBram Moolenaarsyn match vimHiTermcap contained "\S\+" contains=vimNotation 507071d4279SBram Moolenaar 508cfbc5ee4SBram Moolenaar" Highlight: clear {{{2 509071d4279SBram Moolenaarsyn keyword vimHiClear contained clear nextgroup=vimHiGroup 510071d4279SBram Moolenaar 511cfbc5ee4SBram Moolenaar" Highlight: link {{{2 512071d4279SBram Moolenaarsyn region vimHiLink contained oneline matchgroup=vimCommand start="\<\(def\s\+\)\=link\>\|\<def\>" end="$" contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation 513071d4279SBram Moolenaar 514cfbc5ee4SBram Moolenaar" Control Characters {{{2 515071d4279SBram Moolenaar" ================== 516071d4279SBram Moolenaarsyn match vimCtrlChar "[--]" 517071d4279SBram Moolenaar 518cfbc5ee4SBram Moolenaar" Beginners - Patterns that involve ^ {{{2 519071d4279SBram Moolenaar" ========= 520071d4279SBram Moolenaarsyn match vimLineComment +^[ \t:]*".*$+ contains=@vimCommentGroup,vimCommentString,vimCommentTitle 521ff1d0d4cSBram Moolenaarsyn match vimCommentTitle '"\s*\%([sS]:\|\h\w*#\)\=\u\w*\(\s\+\u\w*\)*:'hs=s+1 contained contains=vimCommentTitleLeader,vimTodo,@vimCommentGroup 522071d4279SBram Moolenaarsyn match vimContinue "^\s*\\" 523071d4279SBram Moolenaarsyn region vimString start="^\s*\\\z(['"]\)" skip='\\\\\|\\\z1' end="\z1" oneline keepend contains=@vimStringGroup,vimContinue 524071d4279SBram Moolenaarsyn match vimCommentTitleLeader '"\s\+'ms=s+1 contained 525071d4279SBram Moolenaar 52618144c84SBram Moolenaar" Searches And Globals: {{{2 52718144c84SBram Moolenaar" ==================== 528e2f98b95SBram Moolenaarsyn match vimSearch '^\s*[/?].*' contains=vimSearchDelim 529e2f98b95SBram Moolenaarsyn match vimSearchDelim '^\s*\zs[/?]\|[/?]$' contained 53018144c84SBram Moolenaarsyn region vimGlobal matchgroup=Statement start='\<g\%[lobal]!\=/' skip='\\.' end='/' 53118144c84SBram Moolenaarsyn region vimGlobal matchgroup=Statement start='\<v\%[global]!\=/' skip='\\.' end='/' 532e2f98b95SBram Moolenaar 533cfbc5ee4SBram Moolenaar" Scripts : perl,ruby : Benoit Cerrina {{{2 534071d4279SBram Moolenaar" ======= python,tcl: Johannes Zellner 5354b22cdb0SBram Moolenaar" lua 536071d4279SBram Moolenaar 5373577c6faSBram Moolenaar" Allows users to specify the type of embedded script highlighting 5383577c6faSBram Moolenaar" they want: (perl/python/ruby/tcl support) 5393577c6faSBram Moolenaar" g:vimsyn_embed == 0 : don't embed any scripts 5404b22cdb0SBram Moolenaar" g:vimsyn_embed ~= 'l' : embed lua (but only if vim supports it) 5413577c6faSBram Moolenaar" g:vimsyn_embed ~= 'm' : embed mzscheme (but only if vim supports it) 5423577c6faSBram Moolenaar" g:vimsyn_embed ~= 'p' : embed perl (but only if vim supports it) 5433577c6faSBram Moolenaar" g:vimsyn_embed ~= 'P' : embed python (but only if vim supports it) 5443577c6faSBram Moolenaar" g:vimsyn_embed ~= 'r' : embed ruby (but only if vim supports it) 5453577c6faSBram Moolenaar" g:vimsyn_embed ~= 't' : embed tcl (but only if vim supports it) 5463577c6faSBram Moolenaarif !exists("g:vimsyn_embed") 5474b22cdb0SBram Moolenaar let g:vimsyn_embed= "lmpPr" 548071d4279SBram Moolenaarendif 549071d4279SBram Moolenaar 5504b22cdb0SBram Moolenaar" [-- lua --] {{{3 5514b22cdb0SBram Moolenaarlet s:luapath= expand("<sfile>:p:h")."/lua.vim" 5524b22cdb0SBram Moolenaarif !filereadable(s:luapath) 5534b22cdb0SBram Moolenaar let s:luapath= globpath(&rtp,"syntax/lua.vim") 5544b22cdb0SBram Moolenaarendif 5554b22cdb0SBram Moolenaarif (g:vimsyn_embed =~ 'p' && has("lua")) && filereadable(s:luapath) 5564b22cdb0SBram Moolenaar unlet! b:current_syntax 5574b22cdb0SBram Moolenaar exe "syn include @vimLuaScript ".s:luapath 5584b22cdb0SBram Moolenaar if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'l' 5594b22cdb0SBram Moolenaar syn region vimLuaRegion fold matchgroup=vimScriptDelim start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimLuaScript 5604b22cdb0SBram Moolenaar syn region vimLuaRegion fold matchgroup=vimScriptDelim start=+lua\s*<<\s*$+ end=+\.$+ contains=@vimLuaScript 5614b22cdb0SBram Moolenaar else 5624b22cdb0SBram Moolenaar syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimLuaScript 5634b22cdb0SBram Moolenaar syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*$+ end=+\.$+ contains=@vimLuaScript 5644b22cdb0SBram Moolenaar endif 5654b22cdb0SBram Moolenaar syn cluster vimFuncBodyList add=vimLuaRegion 5664b22cdb0SBram Moolenaarelse 5674b22cdb0SBram Moolenaar syn region vimEmbedError start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+ 5684b22cdb0SBram Moolenaar syn region vimEmbedError start=+lua\s*<<\s*$+ end=+\.$+ 5694b22cdb0SBram Moolenaarendif 5704b22cdb0SBram Moolenaarunlet s:luapath 5714b22cdb0SBram Moolenaar 572cfbc5ee4SBram Moolenaar" [-- perl --] {{{3 5735c73622aSBram Moolenaarlet s:perlpath= expand("<sfile>:p:h")."/perl.vim" 5745c73622aSBram Moolenaarif !filereadable(s:perlpath) 5755c73622aSBram Moolenaar let s:perlpath= globpath(&rtp,"syntax/perl.vim") 5765c73622aSBram Moolenaarendif 5775c73622aSBram Moolenaarif (g:vimsyn_embed =~ 'p' && has("perl")) && filereadable(s:perlpath) 578071d4279SBram Moolenaar unlet! b:current_syntax 5795c73622aSBram Moolenaar exe "syn include @vimPerlScript ".s:perlpath 5803577c6faSBram Moolenaar if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'p' 5813577c6faSBram Moolenaar syn region vimPerlRegion fold matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPerlScript 5823577c6faSBram Moolenaar syn region vimPerlRegion fold matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ contains=@vimPerlScript 5833577c6faSBram Moolenaar else 584071d4279SBram Moolenaar syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPerlScript 585071d4279SBram Moolenaar syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ contains=@vimPerlScript 586071d4279SBram Moolenaar endif 5875c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimPerlRegion 588c236c16dSBram Moolenaarelse 589c236c16dSBram Moolenaar syn region vimEmbedError start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ 590c236c16dSBram Moolenaar syn region vimEmbedError start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ 5913577c6faSBram Moolenaarendif 5925c73622aSBram Moolenaarunlet s:perlpath 593071d4279SBram Moolenaar 594cfbc5ee4SBram Moolenaar" [-- ruby --] {{{3 5955c73622aSBram Moolenaarlet s:rubypath= expand("<sfile>:p:h")."/ruby.vim" 5965c73622aSBram Moolenaarif !filereadable(s:rubypath) 5975c73622aSBram Moolenaar let s:rubypath= globpath(&rtp,"syntax/ruby.vim") 5985c73622aSBram Moolenaarendif 5995c73622aSBram Moolenaarif (g:vimsyn_embed =~ 'r' && has("ruby")) && filereadable(s:rubypath) 600071d4279SBram Moolenaar unlet! b:current_syntax 6015c73622aSBram Moolenaar exe "syn include @vimRubyScript ".s:rubypath 6023577c6faSBram Moolenaar if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'r' 6033577c6faSBram Moolenaar syn region vimRubyRegion fold matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimRubyScript 6043577c6faSBram Moolenaar else 605c236c16dSBram Moolenaar syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimRubyScript 6063577c6faSBram Moolenaar endif 607071d4279SBram Moolenaar syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*$+ end=+\.$+ contains=@vimRubyScript 6085c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimRubyRegion 609c236c16dSBram Moolenaarelse 610c236c16dSBram Moolenaar syn region vimEmbedError start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ 611c236c16dSBram Moolenaar syn region vimEmbedError start=+rub[y]\s*<<\s*$+ end=+\.$+ 612071d4279SBram Moolenaarendif 6135c73622aSBram Moolenaarunlet s:rubypath 614071d4279SBram Moolenaar 615cfbc5ee4SBram Moolenaar" [-- python --] {{{3 6165c73622aSBram Moolenaarlet s:pythonpath= expand("<sfile>:p:h")."/python.vim" 6175c73622aSBram Moolenaarif !filereadable(s:pythonpath) 6185c73622aSBram Moolenaar let s:pythonpath= globpath(&rtp,"syntax/python.vim") 6195c73622aSBram Moolenaarendif 6205c73622aSBram Moolenaarif (g:vimsyn_embed =~ 'P' && has("python")) && filereadable(s:pythonpath) 621071d4279SBram Moolenaar unlet! b:current_syntax 6225c73622aSBram Moolenaar exe "syn include @vimPythonScript ".s:pythonpath 6233577c6faSBram Moolenaar if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'P' 624fa01c39dSBram Moolenaar syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript 625fa01c39dSBram Moolenaar syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript 6263577c6faSBram Moolenaar else 627fa01c39dSBram Moolenaar syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript 628fa01c39dSBram Moolenaar syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript 629071d4279SBram Moolenaar endif 6305c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimPythonRegion 631c236c16dSBram Moolenaarelse 632fa01c39dSBram Moolenaar syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ 633fa01c39dSBram Moolenaar syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ 6343577c6faSBram Moolenaarendif 6355c73622aSBram Moolenaarunlet s:pythonpath 636071d4279SBram Moolenaar 637cfbc5ee4SBram Moolenaar" [-- tcl --] {{{3 6389964e468SBram Moolenaarif has("win32") || has("win95") || has("win64") || has("win16") 6399964e468SBram Moolenaar " apparently has("tcl") has been hanging vim on some windows systems with cygwin 6405c73622aSBram Moolenaar let s:trytcl= (&shell !~ '\<\%(bash\>\|4[nN][tT]\|\<zsh\)\>\%(\.exe\)\=$') 6419964e468SBram Moolenaarelse 6425c73622aSBram Moolenaar let s:trytcl= 1 6439964e468SBram Moolenaarendif 6445c73622aSBram Moolenaarif s:trytcl 6455c73622aSBram Moolenaar let s:tclpath= expand("<sfile>:p:h")."/tcl.vim" 6465c73622aSBram Moolenaar if !filereadable(s:tclpath) 6475c73622aSBram Moolenaar let s:tclpath= globpath(&rtp,"syntax/tcl.vim") 6485c73622aSBram Moolenaar endif 6495c73622aSBram Moolenaar if (g:vimsyn_embed =~ 't' && has("tcl")) && filereadable(s:tclpath) 650071d4279SBram Moolenaar unlet! b:current_syntax 6515c73622aSBram Moolenaar exe "syn include @vimTclScript ".s:tclpath 6523577c6faSBram Moolenaar if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 't' 6533577c6faSBram Moolenaar syn region vimTclRegion fold matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimTclScript 6543577c6faSBram Moolenaar syn region vimTclRegion fold matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+ contains=@vimTclScript 6553577c6faSBram Moolenaar else 656071d4279SBram Moolenaar syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimTclScript 657071d4279SBram Moolenaar syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+ contains=@vimTclScript 658071d4279SBram Moolenaar endif 6595c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimTclScript 660c236c16dSBram Moolenaar else 661c236c16dSBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ 662c236c16dSBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+ 6633577c6faSBram Moolenaar endif 6645c73622aSBram Moolenaar unlet s:tclpath 6655c73622aSBram Moolenaarelse 6665c73622aSBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ 6675c73622aSBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+ 6685c73622aSBram Moolenaarendif 6695c73622aSBram Moolenaarunlet s:trytcl 670071d4279SBram Moolenaar 6718299df96SBram Moolenaar" [-- mzscheme --] {{{3 6725c73622aSBram Moolenaarlet s:mzschemepath= expand("<sfile>:p:h")."/scheme.vim" 6735c73622aSBram Moolenaarif !filereadable(s:mzschemepath) 6745c73622aSBram Moolenaar let s:mzschemepath= globpath(&rtp,"syntax/scheme.vim") 6755c73622aSBram Moolenaarendif 6765c73622aSBram Moolenaarif (g:vimsyn_embed =~ 'm' && has("mzscheme")) && filereadable(s:mzschemepath) 6778299df96SBram Moolenaar unlet! b:current_syntax 6788299df96SBram Moolenaar let iskKeep= &isk 6795c73622aSBram Moolenaar exe "syn include @vimMzSchemeScript ".s:mzschemepath 6808299df96SBram Moolenaar let &isk= iskKeep 681c236c16dSBram Moolenaar if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'm' 6823577c6faSBram Moolenaar syn region vimMzSchemeRegion fold matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimMzSchemeScript 6833577c6faSBram Moolenaar syn region vimMzSchemeRegion fold matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ contains=@vimMzSchemeScript 6843577c6faSBram Moolenaar else 6858299df96SBram Moolenaar syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimMzSchemeScript 6868299df96SBram Moolenaar syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ contains=@vimMzSchemeScript 6878299df96SBram Moolenaar endif 6885c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimMzSchemeRegion 689c236c16dSBram Moolenaarelse 690c236c16dSBram Moolenaar syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ 691c236c16dSBram Moolenaar syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ 6923577c6faSBram Moolenaarendif 6935c73622aSBram Moolenaarunlet s:mzschemepath 6948299df96SBram Moolenaar 695cfbc5ee4SBram Moolenaar" Synchronize (speed) {{{2 696071d4279SBram Moolenaar"============ 6973577c6faSBram Moolenaarif exists("g:vimsyn_minlines") 6983577c6faSBram Moolenaar exe "syn sync minlines=".g:vimsyn_minlines 699071d4279SBram Moolenaarendif 7003577c6faSBram Moolenaarif exists("g:vimsyn_maxlines") 7013577c6faSBram Moolenaar exe "syn sync maxlines=".g:vimsyn_maxlines 702071d4279SBram Moolenaarelse 703071d4279SBram Moolenaar syn sync maxlines=60 704071d4279SBram Moolenaarendif 705071d4279SBram Moolenaarsyn sync linecont "^\s\+\\" 706071d4279SBram Moolenaarsyn sync match vimAugroupSyncA groupthere NONE "\<aug\%[roup]\>\s\+[eE][nN][dD]" 707071d4279SBram Moolenaar 7085c73622aSBram Moolenaar" ==================== 709cfbc5ee4SBram Moolenaar" Highlighting Settings {{{2 710071d4279SBram Moolenaar" ==================== 711071d4279SBram Moolenaar 712071d4279SBram Moolenaarhi def link vimAuHighlight vimHighlight 713071d4279SBram Moolenaarhi def link vimSubst1 vimSubst 714071d4279SBram Moolenaarhi def link vimBehaveModel vimBehave 715071d4279SBram Moolenaar 7163577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 717cfbc5ee4SBram Moolenaar hi def link vimBehaveError vimError 718cfbc5ee4SBram Moolenaar hi def link vimCollClassErr vimError 719cfbc5ee4SBram Moolenaar hi def link vimErrSetting vimError 720c236c16dSBram Moolenaar hi def link vimEmbedError vimError 721cfbc5ee4SBram Moolenaar hi def link vimFTError vimError 722cfbc5ee4SBram Moolenaar hi def link vimFunctionError vimError 7238299df96SBram Moolenaar hi def link vimFunc vimError 724cfbc5ee4SBram Moolenaar hi def link vimHiAttribList vimError 725cfbc5ee4SBram Moolenaar hi def link vimHiCtermError vimError 726cfbc5ee4SBram Moolenaar hi def link vimHiKeyError vimError 727cfbc5ee4SBram Moolenaar hi def link vimKeyCodeError vimError 728cfbc5ee4SBram Moolenaar hi def link vimMapModErr vimError 729cfbc5ee4SBram Moolenaar hi def link vimSubstFlagErr vimError 730cfbc5ee4SBram Moolenaar hi def link vimSynCaseError vimError 7313577c6faSBram Moolenaar hi def link vimBufnrWarn vimWarn 732cfbc5ee4SBram Moolenaarendif 733cfbc5ee4SBram Moolenaar 734e37d50a5SBram Moolenaarhi def link vimAbb vimCommand 735cfbc5ee4SBram Moolenaarhi def link vimAddress vimMark 736071d4279SBram Moolenaarhi def link vimAugroupKey vimCommand 737071d4279SBram Moolenaarhi def link vimAutoCmdOpt vimOption 738071d4279SBram Moolenaarhi def link vimAutoCmd vimCommand 739071d4279SBram Moolenaarhi def link vimAutoSet vimCommand 740071d4279SBram Moolenaarhi def link vimBehave vimCommand 741071d4279SBram Moolenaarhi def link vimCommentString vimString 742071d4279SBram Moolenaarhi def link vimCondHL vimCommand 743071d4279SBram Moolenaarhi def link vimEchoHLNone vimGroup 744071d4279SBram Moolenaarhi def link vimEchoHL vimCommand 745071d4279SBram Moolenaarhi def link vimElseif vimCondHL 746071d4279SBram Moolenaarhi def link vimFgBgAttrib vimHiAttrib 747071d4279SBram Moolenaarhi def link vimFTCmd vimCommand 748071d4279SBram Moolenaarhi def link vimFTOption vimSynType 749071d4279SBram Moolenaarhi def link vimFuncKey vimCommand 750071d4279SBram Moolenaarhi def link vimGroupAdd vimSynOption 751071d4279SBram Moolenaarhi def link vimGroupRem vimSynOption 752071d4279SBram Moolenaarhi def link vimHiCtermFgBg vimHiTerm 753071d4279SBram Moolenaarhi def link vimHiCTerm vimHiTerm 754071d4279SBram Moolenaarhi def link vimHighlight vimCommand 755071d4279SBram Moolenaarhi def link vimHiGroup vimGroupName 756071d4279SBram Moolenaarhi def link vimHiGuiFgBg vimHiTerm 757071d4279SBram Moolenaarhi def link vimHiGuiFont vimHiTerm 758071d4279SBram Moolenaarhi def link vimHiGuiRgb vimNumber 759071d4279SBram Moolenaarhi def link vimHiGui vimHiTerm 760071d4279SBram Moolenaarhi def link vimHiStartStop vimHiTerm 761071d4279SBram Moolenaarhi def link vimHLGroup vimGroup 762071d4279SBram Moolenaarhi def link vimInsert vimString 763071d4279SBram Moolenaarhi def link vimKeyCode vimSpecFile 764071d4279SBram Moolenaarhi def link vimLet vimCommand 765071d4279SBram Moolenaarhi def link vimLineComment vimComment 766071d4279SBram Moolenaarhi def link vimMapBang vimCommand 767071d4279SBram Moolenaarhi def link vimMapModKey vimFuncSID 768071d4279SBram Moolenaarhi def link vimMapMod vimBracket 769071d4279SBram Moolenaarhi def link vimMap vimCommand 770071d4279SBram Moolenaarhi def link vimMarkNumber vimNumber 771071d4279SBram Moolenaarhi def link vimMenuMod vimMapMod 772071d4279SBram Moolenaarhi def link vimMenuNameMore vimMenuName 773071d4279SBram Moolenaarhi def link vimMtchComment vimComment 77405159a0cSBram Moolenaarhi def link vimNorm vimCommand 7755c73622aSBram Moolenaarhi def link vimNotFunc vimCommand 776071d4279SBram Moolenaarhi def link vimNotPatSep vimString 777071d4279SBram Moolenaarhi def link vimPatSepErr vimPatSep 7785c73622aSBram Moolenaarhi def link vimPatSepR vimPatSep 779071d4279SBram Moolenaarhi def link vimPatSepZone vimString 7805c73622aSBram Moolenaarhi def link vimPatSepZ vimPatSep 781071d4279SBram Moolenaarhi def link vimPlainMark vimMark 782071d4279SBram Moolenaarhi def link vimPlainRegister vimRegister 783e2f98b95SBram Moolenaarhi def link vimSearch vimString 784071d4279SBram Moolenaarhi def link vimSetMod vimOption 785071d4279SBram Moolenaarhi def link vimSetString vimString 786071d4279SBram Moolenaarhi def link vimSpecFileMod vimSpecFile 787071d4279SBram Moolenaarhi def link vimStringCont vimString 788071d4279SBram Moolenaarhi def link vimSubstTwoBS vimString 789071d4279SBram Moolenaarhi def link vimSubst vimCommand 790071d4279SBram Moolenaarhi def link vimSyncGroupName vimGroupName 791071d4279SBram Moolenaarhi def link vimSyncGroup vimGroupName 792071d4279SBram Moolenaarhi def link vimSynContains vimSynOption 793071d4279SBram Moolenaarhi def link vimSynKeyContainedin vimSynContains 794071d4279SBram Moolenaarhi def link vimSynKeyOpt vimSynOption 795071d4279SBram Moolenaarhi def link vimSynMtchGrp vimSynOption 796071d4279SBram Moolenaarhi def link vimSynMtchOpt vimSynOption 797071d4279SBram Moolenaarhi def link vimSynNextgroup vimSynOption 798071d4279SBram Moolenaarhi def link vimSynNotPatRange vimSynRegPat 799071d4279SBram Moolenaarhi def link vimSynPatRange vimString 800071d4279SBram Moolenaarhi def link vimSynRegOpt vimSynOption 801071d4279SBram Moolenaarhi def link vimSynRegPat vimString 802071d4279SBram Moolenaarhi def link vimSyntax vimCommand 803071d4279SBram Moolenaarhi def link vimSynType vimSpecial 8045c73622aSBram Moolenaarhi def link vimUnmap vimMap 805071d4279SBram Moolenaarhi def link vimUserAttrbCmplt vimSpecial 806071d4279SBram Moolenaarhi def link vimUserAttrbKey vimOption 807071d4279SBram Moolenaarhi def link vimUserAttrb vimSpecial 808071d4279SBram Moolenaarhi def link vimUserCommand vimCommand 809071d4279SBram Moolenaar 810071d4279SBram Moolenaarhi def link vimAutoEvent Type 811071d4279SBram Moolenaarhi def link vimBracket Delimiter 812071d4279SBram Moolenaarhi def link vimCmplxRepeat SpecialChar 813071d4279SBram Moolenaarhi def link vimCommand Statement 814071d4279SBram Moolenaarhi def link vimComment Comment 815071d4279SBram Moolenaarhi def link vimCommentTitle PreProc 816071d4279SBram Moolenaarhi def link vimContinue Special 817071d4279SBram Moolenaarhi def link vimCtrlChar SpecialChar 818071d4279SBram Moolenaarhi def link vimElseIfErr Error 819071d4279SBram Moolenaarhi def link vimEnvvar PreProc 820071d4279SBram Moolenaarhi def link vimError Error 821071d4279SBram Moolenaarhi def link vimFold Folded 822071d4279SBram Moolenaarhi def link vimFuncName Function 823071d4279SBram Moolenaarhi def link vimFuncSID Special 824071d4279SBram Moolenaarhi def link vimFuncVar Identifier 825071d4279SBram Moolenaarhi def link vimGroupSpecial Special 8265c73622aSBram Moolenaarhi def link vimGroup Type 827071d4279SBram Moolenaarhi def link vimHiAttrib PreProc 828071d4279SBram Moolenaarhi def link vimHiTerm Type 8295c73622aSBram Moolenaarhi def link vimHLMod PreProc 830071d4279SBram Moolenaarhi def link vimKeyword Statement 831071d4279SBram Moolenaarhi def link vimMark Number 832071d4279SBram Moolenaarhi def link vimMenuName PreProc 833071d4279SBram Moolenaarhi def link vimNotation Special 834071d4279SBram Moolenaarhi def link vimNumber Number 8355c73622aSBram Moolenaarhi def link vimOperError Error 836071d4279SBram Moolenaarhi def link vimOper Operator 837071d4279SBram Moolenaarhi def link vimOption PreProc 8385c73622aSBram Moolenaarhi def link vimParenSep Delimiter 839071d4279SBram Moolenaarhi def link vimPatSep SpecialChar 840071d4279SBram Moolenaarhi def link vimPattern Type 841071d4279SBram Moolenaarhi def link vimRegister SpecialChar 842071d4279SBram Moolenaarhi def link vimScriptDelim Comment 8435c73622aSBram Moolenaarhi def link vimSearchDelim Statement 844071d4279SBram Moolenaarhi def link vimSep Delimiter 845071d4279SBram Moolenaarhi def link vimSetSep Statement 846071d4279SBram Moolenaarhi def link vimSpecFile Identifier 847071d4279SBram Moolenaarhi def link vimSpecial Type 848071d4279SBram Moolenaarhi def link vimStatement Statement 849071d4279SBram Moolenaarhi def link vimString String 850071d4279SBram Moolenaarhi def link vimSubstDelim Delimiter 851071d4279SBram Moolenaarhi def link vimSubstFlags Special 852071d4279SBram Moolenaarhi def link vimSubstSubstr SpecialChar 853071d4279SBram Moolenaarhi def link vimSynCaseError Error 8545c73622aSBram Moolenaarhi def link vimSynCase Type 855071d4279SBram Moolenaarhi def link vimSyncC Type 856071d4279SBram Moolenaarhi def link vimSyncError Error 857071d4279SBram Moolenaarhi def link vimSyncKey Type 858071d4279SBram Moolenaarhi def link vimSyncNone Type 8595c73622aSBram Moolenaarhi def link vimSynError Error 8605c73622aSBram Moolenaarhi def link vimSynOption Special 8615c73622aSBram Moolenaarhi def link vimSynReg Type 862071d4279SBram Moolenaarhi def link vimTodo Todo 863a93fa7eeSBram Moolenaarhi def link vimUserAttrbCmpltFunc Special 8645c73622aSBram Moolenaarhi def link vimUserCmdError Error 8655c73622aSBram Moolenaarhi def link vimUserFunc Normal 8663577c6faSBram Moolenaarhi def link vimWarn WarningMsg 867071d4279SBram Moolenaar 868cfbc5ee4SBram Moolenaar" Current Syntax Variable: {{{2 869071d4279SBram Moolenaarlet b:current_syntax = "vim" 870071d4279SBram Moolenaar" vim:ts=18 fdm=marker 871