1071d4279SBram Moolenaar" Vim syntax file 2b2c0350cSBram Moolenaar" Language: Vim 7.3 script 3071d4279SBram Moolenaar" Maintainer: Dr. Charles E. Campbell, Jr. <[email protected]> 4*fa01c39dSBram Moolenaar" Last Change: Jul 19, 2010 5*fa01c39dSBram Moolenaar" Version: 7.3-02 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 19*fa01c39dSBram 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 20*fa01c39dSBram 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 21*fa01c39dSBram 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 22*fa01c39dSBram 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] 23*fa01c39dSBram 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*fa01c39dSBram Moolenaarsyn keyword vimOption contained acd ambiwidth arabicshape autowriteall backupdir bdlay binary breakat bufhidden cd ci cinw co 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 ssop stl suffixesadd switchbuf ta taglength tbi termbidi tf title to ts tty ttytype ul ut verbosefile virtualedit wb wfw wildcharm winaltkeys winminwidth wmnu write 28*fa01c39dSBram Moolenaarsyn keyword vimOption contained ai ambw ari aw backupext beval biosk brk buflisted cdpath cin cinwords 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 st stmp sw sws tabline tagrelative tbidi termencoding tgst titlelen toolbar tsl ttybuiltin tw undodir vb vfile visualbell wc wh wildignore window winwidth wmw writeany 29*fa01c39dSBram Moolenaarsyn keyword vimOption contained akm anti arshape awa backupskip bex bioskey browsedir buftype cedit cindent clipboard 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 sta sts swapfile sxq tabpagemax tags tbis terse thesaurus titleold toolbariconsize tsr ttyfast tx undofile vbs vi vop wcm whichwrap wildmenu winfixheight wiv wop writebackup 30*fa01c39dSBram Moolenaarsyn keyword vimOption contained al antialias autochdir background balloondelay bexpr bk bs casemap cf cink cmdheight com conc 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 stal su swapsync syn tabstop tagstack tbs textauto tildeop titlestring top ttimeout ttym uc undolevels vdir viewdir wa wd wi wildmode winfixwidth wiw wrap writedelay 31*fa01c39dSBram Moolenaarsyn keyword vimOption contained aleph ar autoindent backspace ballooneval bg bkc bsdir cb cfu cinkeys cmdwinheight 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 startofline sua swb synmaxcol tag tal tenc textmode timeout tl tpm ttimeoutlen ttymouse udf updatecount ve viewoptions wak weirdinvert wig wildoptions winheight wm wrapmargin ws 32*fa01c39dSBram Moolenaarsyn keyword vimOption contained allowrevins arab autoread backup balloonexpr bh bl bsk cc ch cino cmp 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 statusline suffixes swf syntax tagbsearch tb term textwidth timeoutlen tm tr ttm ttyscroll udir updatetime verbose viminfo warn wfh wildchar wim winminheight wmh wrapscan ww 33*fa01c39dSBram Moolenaarsyn keyword vimOption contained altkeymap arabic autowrite backupcopy bdir bin bomb bt ccv charconvert cinoptions cms 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 34071d4279SBram Moolenaar 35071d4279SBram Moolenaar" vimOptions: These are the turn-off setting variants {{{2 36*fa01c39dSBram 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 37*fa01c39dSBram 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 38*fa01c39dSBram 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 41*fa01c39dSBram 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 42*fa01c39dSBram 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 43*fa01c39dSBram 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 68*fa01c39dSBram 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*fa01c39dSBram 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 matchlist 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 synIDattr synstack tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree virtcol winbufnr winheight winnr winrestview winwidth 74*fa01c39dSBram 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 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 synID synIDtrans system tabpagenr tagfiles tan tempname toupper trunc undofile values visualmode wincol winline winrestcmd winsaveview writefile 75*fa01c39dSBram 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 76071d4279SBram Moolenaar 77071d4279SBram Moolenaar"--- syntax above generated by mkvimvim --- 78cfbc5ee4SBram Moolenaar" Special Vim Highlighting (not automatic) {{{1 79071d4279SBram Moolenaar 80*fa01c39dSBram Moolenaar" commands not picked up by the generator (due to non-standard format) 81*fa01c39dSBram Moolenaarsyn keyword vimCommand contained py3 82*fa01c39dSBram 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 287c1e37901SBram Moolenaarsyn region vimSet matchgroup=vimCommand start="\<\%(setl\%[ocal]\|setg\%[lobal]\|set\)\>" 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 535071d4279SBram Moolenaar 5363577c6faSBram Moolenaar" Allows users to specify the type of embedded script highlighting 5373577c6faSBram Moolenaar" they want: (perl/python/ruby/tcl support) 5383577c6faSBram Moolenaar" g:vimsyn_embed == 0 : don't embed any scripts 5393577c6faSBram Moolenaar" g:vimsyn_embed ~= 'm' : embed mzscheme (but only if vim supports it) 5403577c6faSBram Moolenaar" g:vimsyn_embed ~= 'p' : embed perl (but only if vim supports it) 5413577c6faSBram Moolenaar" g:vimsyn_embed ~= 'P' : embed python (but only if vim supports it) 5423577c6faSBram Moolenaar" g:vimsyn_embed ~= 'r' : embed ruby (but only if vim supports it) 5433577c6faSBram Moolenaar" g:vimsyn_embed ~= 't' : embed tcl (but only if vim supports it) 5443577c6faSBram Moolenaarif !exists("g:vimsyn_embed") 5453577c6faSBram Moolenaar let g:vimsyn_embed= "mpPr" 546071d4279SBram Moolenaarendif 547071d4279SBram Moolenaar 548cfbc5ee4SBram Moolenaar" [-- perl --] {{{3 5495c73622aSBram Moolenaarlet s:perlpath= expand("<sfile>:p:h")."/perl.vim" 5505c73622aSBram Moolenaarif !filereadable(s:perlpath) 5515c73622aSBram Moolenaar let s:perlpath= globpath(&rtp,"syntax/perl.vim") 5525c73622aSBram Moolenaarendif 5535c73622aSBram Moolenaarif (g:vimsyn_embed =~ 'p' && has("perl")) && filereadable(s:perlpath) 554071d4279SBram Moolenaar unlet! b:current_syntax 5555c73622aSBram Moolenaar exe "syn include @vimPerlScript ".s:perlpath 5563577c6faSBram Moolenaar if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'p' 5573577c6faSBram Moolenaar syn region vimPerlRegion fold matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPerlScript 5583577c6faSBram Moolenaar syn region vimPerlRegion fold matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ contains=@vimPerlScript 5593577c6faSBram Moolenaar else 560071d4279SBram Moolenaar syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPerlScript 561071d4279SBram Moolenaar syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ contains=@vimPerlScript 562071d4279SBram Moolenaar endif 5635c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimPerlRegion 564c236c16dSBram Moolenaarelse 565c236c16dSBram Moolenaar syn region vimEmbedError start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ 566c236c16dSBram Moolenaar syn region vimEmbedError start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ 5673577c6faSBram Moolenaarendif 5685c73622aSBram Moolenaarunlet s:perlpath 569071d4279SBram Moolenaar 570cfbc5ee4SBram Moolenaar" [-- ruby --] {{{3 5715c73622aSBram Moolenaarlet s:rubypath= expand("<sfile>:p:h")."/ruby.vim" 5725c73622aSBram Moolenaarif !filereadable(s:rubypath) 5735c73622aSBram Moolenaar let s:rubypath= globpath(&rtp,"syntax/ruby.vim") 5745c73622aSBram Moolenaarendif 5755c73622aSBram Moolenaarif (g:vimsyn_embed =~ 'r' && has("ruby")) && filereadable(s:rubypath) 576071d4279SBram Moolenaar unlet! b:current_syntax 5775c73622aSBram Moolenaar exe "syn include @vimRubyScript ".s:rubypath 5783577c6faSBram Moolenaar if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'r' 5793577c6faSBram Moolenaar syn region vimRubyRegion fold matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimRubyScript 5803577c6faSBram Moolenaar else 581c236c16dSBram Moolenaar syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimRubyScript 5823577c6faSBram Moolenaar endif 583071d4279SBram Moolenaar syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*$+ end=+\.$+ contains=@vimRubyScript 5845c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimRubyRegion 585c236c16dSBram Moolenaarelse 586c236c16dSBram Moolenaar syn region vimEmbedError start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ 587c236c16dSBram Moolenaar syn region vimEmbedError start=+rub[y]\s*<<\s*$+ end=+\.$+ 588071d4279SBram Moolenaarendif 5895c73622aSBram Moolenaarunlet s:rubypath 590071d4279SBram Moolenaar 591cfbc5ee4SBram Moolenaar" [-- python --] {{{3 5925c73622aSBram Moolenaarlet s:pythonpath= expand("<sfile>:p:h")."/python.vim" 5935c73622aSBram Moolenaarif !filereadable(s:pythonpath) 5945c73622aSBram Moolenaar let s:pythonpath= globpath(&rtp,"syntax/python.vim") 5955c73622aSBram Moolenaarendif 5965c73622aSBram Moolenaarif (g:vimsyn_embed =~ 'P' && has("python")) && filereadable(s:pythonpath) 597071d4279SBram Moolenaar unlet! b:current_syntax 5985c73622aSBram Moolenaar exe "syn include @vimPythonScript ".s:pythonpath 5993577c6faSBram Moolenaar if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'P' 600*fa01c39dSBram Moolenaar syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript 601*fa01c39dSBram Moolenaar syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript 6023577c6faSBram Moolenaar else 603*fa01c39dSBram Moolenaar syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript 604*fa01c39dSBram Moolenaar syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript 605071d4279SBram Moolenaar endif 6065c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimPythonRegion 607c236c16dSBram Moolenaarelse 608*fa01c39dSBram Moolenaar syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ 609*fa01c39dSBram Moolenaar syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ 6103577c6faSBram Moolenaarendif 6115c73622aSBram Moolenaarunlet s:pythonpath 612071d4279SBram Moolenaar 613cfbc5ee4SBram Moolenaar" [-- tcl --] {{{3 6149964e468SBram Moolenaarif has("win32") || has("win95") || has("win64") || has("win16") 6159964e468SBram Moolenaar " apparently has("tcl") has been hanging vim on some windows systems with cygwin 6165c73622aSBram Moolenaar let s:trytcl= (&shell !~ '\<\%(bash\>\|4[nN][tT]\|\<zsh\)\>\%(\.exe\)\=$') 6179964e468SBram Moolenaarelse 6185c73622aSBram Moolenaar let s:trytcl= 1 6199964e468SBram Moolenaarendif 6205c73622aSBram Moolenaarif s:trytcl 6215c73622aSBram Moolenaar let s:tclpath= expand("<sfile>:p:h")."/tcl.vim" 6225c73622aSBram Moolenaar if !filereadable(s:tclpath) 6235c73622aSBram Moolenaar let s:tclpath= globpath(&rtp,"syntax/tcl.vim") 6245c73622aSBram Moolenaar endif 6255c73622aSBram Moolenaar if (g:vimsyn_embed =~ 't' && has("tcl")) && filereadable(s:tclpath) 626071d4279SBram Moolenaar unlet! b:current_syntax 6275c73622aSBram Moolenaar exe "syn include @vimTclScript ".s:tclpath 6283577c6faSBram Moolenaar if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 't' 6293577c6faSBram Moolenaar syn region vimTclRegion fold matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimTclScript 6303577c6faSBram Moolenaar syn region vimTclRegion fold matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+ contains=@vimTclScript 6313577c6faSBram Moolenaar else 632071d4279SBram Moolenaar syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimTclScript 633071d4279SBram Moolenaar syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+ contains=@vimTclScript 634071d4279SBram Moolenaar endif 6355c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimTclScript 636c236c16dSBram Moolenaar else 637c236c16dSBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ 638c236c16dSBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+ 6393577c6faSBram Moolenaar endif 6405c73622aSBram Moolenaar unlet s:tclpath 6415c73622aSBram Moolenaarelse 6425c73622aSBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ 6435c73622aSBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+ 6445c73622aSBram Moolenaarendif 6455c73622aSBram Moolenaarunlet s:trytcl 646071d4279SBram Moolenaar 6478299df96SBram Moolenaar" [-- mzscheme --] {{{3 6485c73622aSBram Moolenaarlet s:mzschemepath= expand("<sfile>:p:h")."/scheme.vim" 6495c73622aSBram Moolenaarif !filereadable(s:mzschemepath) 6505c73622aSBram Moolenaar let s:mzschemepath= globpath(&rtp,"syntax/scheme.vim") 6515c73622aSBram Moolenaarendif 6525c73622aSBram Moolenaarif (g:vimsyn_embed =~ 'm' && has("mzscheme")) && filereadable(s:mzschemepath) 6538299df96SBram Moolenaar unlet! b:current_syntax 6548299df96SBram Moolenaar let iskKeep= &isk 6555c73622aSBram Moolenaar exe "syn include @vimMzSchemeScript ".s:mzschemepath 6568299df96SBram Moolenaar let &isk= iskKeep 657c236c16dSBram Moolenaar if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'm' 6583577c6faSBram Moolenaar syn region vimMzSchemeRegion fold matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimMzSchemeScript 6593577c6faSBram Moolenaar syn region vimMzSchemeRegion fold matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ contains=@vimMzSchemeScript 6603577c6faSBram Moolenaar else 6618299df96SBram Moolenaar syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimMzSchemeScript 6628299df96SBram Moolenaar syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ contains=@vimMzSchemeScript 6638299df96SBram Moolenaar endif 6645c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimMzSchemeRegion 665c236c16dSBram Moolenaarelse 666c236c16dSBram Moolenaar syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ 667c236c16dSBram Moolenaar syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ 6683577c6faSBram Moolenaarendif 6695c73622aSBram Moolenaarunlet s:mzschemepath 6708299df96SBram Moolenaar 671cfbc5ee4SBram Moolenaar" Synchronize (speed) {{{2 672071d4279SBram Moolenaar"============ 6733577c6faSBram Moolenaarif exists("g:vimsyn_minlines") 6743577c6faSBram Moolenaar exe "syn sync minlines=".g:vimsyn_minlines 675071d4279SBram Moolenaarendif 6763577c6faSBram Moolenaarif exists("g:vimsyn_maxlines") 6773577c6faSBram Moolenaar exe "syn sync maxlines=".g:vimsyn_maxlines 678071d4279SBram Moolenaarelse 679071d4279SBram Moolenaar syn sync maxlines=60 680071d4279SBram Moolenaarendif 681071d4279SBram Moolenaarsyn sync linecont "^\s\+\\" 682071d4279SBram Moolenaarsyn sync match vimAugroupSyncA groupthere NONE "\<aug\%[roup]\>\s\+[eE][nN][dD]" 683071d4279SBram Moolenaar 6845c73622aSBram Moolenaar" ==================== 685cfbc5ee4SBram Moolenaar" Highlighting Settings {{{2 686071d4279SBram Moolenaar" ==================== 687071d4279SBram Moolenaar 688071d4279SBram Moolenaarhi def link vimAuHighlight vimHighlight 689071d4279SBram Moolenaarhi def link vimSubst1 vimSubst 690071d4279SBram Moolenaarhi def link vimBehaveModel vimBehave 691071d4279SBram Moolenaar 6923577c6faSBram Moolenaarif !exists("g:vimsyn_noerror") 693cfbc5ee4SBram Moolenaar hi def link vimBehaveError vimError 694cfbc5ee4SBram Moolenaar hi def link vimCollClassErr vimError 695cfbc5ee4SBram Moolenaar hi def link vimErrSetting vimError 696c236c16dSBram Moolenaar hi def link vimEmbedError vimError 697cfbc5ee4SBram Moolenaar hi def link vimFTError vimError 698cfbc5ee4SBram Moolenaar hi def link vimFunctionError vimError 6998299df96SBram Moolenaar hi def link vimFunc vimError 700cfbc5ee4SBram Moolenaar hi def link vimHiAttribList vimError 701cfbc5ee4SBram Moolenaar hi def link vimHiCtermError vimError 702cfbc5ee4SBram Moolenaar hi def link vimHiKeyError vimError 703cfbc5ee4SBram Moolenaar hi def link vimKeyCodeError vimError 704cfbc5ee4SBram Moolenaar hi def link vimMapModErr vimError 705cfbc5ee4SBram Moolenaar hi def link vimSubstFlagErr vimError 706cfbc5ee4SBram Moolenaar hi def link vimSynCaseError vimError 7073577c6faSBram Moolenaar hi def link vimBufnrWarn vimWarn 708cfbc5ee4SBram Moolenaarendif 709cfbc5ee4SBram Moolenaar 710e37d50a5SBram Moolenaarhi def link vimAbb vimCommand 711cfbc5ee4SBram Moolenaarhi def link vimAddress vimMark 712071d4279SBram Moolenaarhi def link vimAugroupKey vimCommand 713071d4279SBram Moolenaarhi def link vimAutoCmdOpt vimOption 714071d4279SBram Moolenaarhi def link vimAutoCmd vimCommand 715071d4279SBram Moolenaarhi def link vimAutoSet vimCommand 716071d4279SBram Moolenaarhi def link vimBehave vimCommand 717071d4279SBram Moolenaarhi def link vimCommentString vimString 718071d4279SBram Moolenaarhi def link vimCondHL vimCommand 719071d4279SBram Moolenaarhi def link vimEchoHLNone vimGroup 720071d4279SBram Moolenaarhi def link vimEchoHL vimCommand 721071d4279SBram Moolenaarhi def link vimElseif vimCondHL 722071d4279SBram Moolenaarhi def link vimFgBgAttrib vimHiAttrib 723071d4279SBram Moolenaarhi def link vimFTCmd vimCommand 724071d4279SBram Moolenaarhi def link vimFTOption vimSynType 725071d4279SBram Moolenaarhi def link vimFuncKey vimCommand 726071d4279SBram Moolenaarhi def link vimGroupAdd vimSynOption 727071d4279SBram Moolenaarhi def link vimGroupRem vimSynOption 728071d4279SBram Moolenaarhi def link vimHiCtermFgBg vimHiTerm 729071d4279SBram Moolenaarhi def link vimHiCTerm vimHiTerm 730071d4279SBram Moolenaarhi def link vimHighlight vimCommand 731071d4279SBram Moolenaarhi def link vimHiGroup vimGroupName 732071d4279SBram Moolenaarhi def link vimHiGuiFgBg vimHiTerm 733071d4279SBram Moolenaarhi def link vimHiGuiFont vimHiTerm 734071d4279SBram Moolenaarhi def link vimHiGuiRgb vimNumber 735071d4279SBram Moolenaarhi def link vimHiGui vimHiTerm 736071d4279SBram Moolenaarhi def link vimHiStartStop vimHiTerm 737071d4279SBram Moolenaarhi def link vimHLGroup vimGroup 738071d4279SBram Moolenaarhi def link vimInsert vimString 739071d4279SBram Moolenaarhi def link vimKeyCode vimSpecFile 740071d4279SBram Moolenaarhi def link vimLet vimCommand 741071d4279SBram Moolenaarhi def link vimLineComment vimComment 742071d4279SBram Moolenaarhi def link vimMapBang vimCommand 743071d4279SBram Moolenaarhi def link vimMapModKey vimFuncSID 744071d4279SBram Moolenaarhi def link vimMapMod vimBracket 745071d4279SBram Moolenaarhi def link vimMap vimCommand 746071d4279SBram Moolenaarhi def link vimMarkNumber vimNumber 747071d4279SBram Moolenaarhi def link vimMenuMod vimMapMod 748071d4279SBram Moolenaarhi def link vimMenuNameMore vimMenuName 749071d4279SBram Moolenaarhi def link vimMtchComment vimComment 75005159a0cSBram Moolenaarhi def link vimNorm vimCommand 7515c73622aSBram Moolenaarhi def link vimNotFunc vimCommand 752071d4279SBram Moolenaarhi def link vimNotPatSep vimString 753071d4279SBram Moolenaarhi def link vimPatSepErr vimPatSep 7545c73622aSBram Moolenaarhi def link vimPatSepR vimPatSep 755071d4279SBram Moolenaarhi def link vimPatSepZone vimString 7565c73622aSBram Moolenaarhi def link vimPatSepZ vimPatSep 757071d4279SBram Moolenaarhi def link vimPlainMark vimMark 758071d4279SBram Moolenaarhi def link vimPlainRegister vimRegister 759e2f98b95SBram Moolenaarhi def link vimSearch vimString 760071d4279SBram Moolenaarhi def link vimSetMod vimOption 761071d4279SBram Moolenaarhi def link vimSetString vimString 762071d4279SBram Moolenaarhi def link vimSpecFileMod vimSpecFile 763071d4279SBram Moolenaarhi def link vimStringCont vimString 764071d4279SBram Moolenaarhi def link vimSubstTwoBS vimString 765071d4279SBram Moolenaarhi def link vimSubst vimCommand 766071d4279SBram Moolenaarhi def link vimSyncGroupName vimGroupName 767071d4279SBram Moolenaarhi def link vimSyncGroup vimGroupName 768071d4279SBram Moolenaarhi def link vimSynContains vimSynOption 769071d4279SBram Moolenaarhi def link vimSynKeyContainedin vimSynContains 770071d4279SBram Moolenaarhi def link vimSynKeyOpt vimSynOption 771071d4279SBram Moolenaarhi def link vimSynMtchGrp vimSynOption 772071d4279SBram Moolenaarhi def link vimSynMtchOpt vimSynOption 773071d4279SBram Moolenaarhi def link vimSynNextgroup vimSynOption 774071d4279SBram Moolenaarhi def link vimSynNotPatRange vimSynRegPat 775071d4279SBram Moolenaarhi def link vimSynPatRange vimString 776071d4279SBram Moolenaarhi def link vimSynRegOpt vimSynOption 777071d4279SBram Moolenaarhi def link vimSynRegPat vimString 778071d4279SBram Moolenaarhi def link vimSyntax vimCommand 779071d4279SBram Moolenaarhi def link vimSynType vimSpecial 7805c73622aSBram Moolenaarhi def link vimUnmap vimMap 781071d4279SBram Moolenaarhi def link vimUserAttrbCmplt vimSpecial 782071d4279SBram Moolenaarhi def link vimUserAttrbKey vimOption 783071d4279SBram Moolenaarhi def link vimUserAttrb vimSpecial 784071d4279SBram Moolenaarhi def link vimUserCommand vimCommand 785071d4279SBram Moolenaar 786071d4279SBram Moolenaarhi def link vimAutoEvent Type 787071d4279SBram Moolenaarhi def link vimBracket Delimiter 788071d4279SBram Moolenaarhi def link vimCmplxRepeat SpecialChar 789071d4279SBram Moolenaarhi def link vimCommand Statement 790071d4279SBram Moolenaarhi def link vimComment Comment 791071d4279SBram Moolenaarhi def link vimCommentTitle PreProc 792071d4279SBram Moolenaarhi def link vimContinue Special 793071d4279SBram Moolenaarhi def link vimCtrlChar SpecialChar 794071d4279SBram Moolenaarhi def link vimElseIfErr Error 795071d4279SBram Moolenaarhi def link vimEnvvar PreProc 796071d4279SBram Moolenaarhi def link vimError Error 797071d4279SBram Moolenaarhi def link vimFold Folded 798071d4279SBram Moolenaarhi def link vimFuncName Function 799071d4279SBram Moolenaarhi def link vimFuncSID Special 800071d4279SBram Moolenaarhi def link vimFuncVar Identifier 801071d4279SBram Moolenaarhi def link vimGroupSpecial Special 8025c73622aSBram Moolenaarhi def link vimGroup Type 803071d4279SBram Moolenaarhi def link vimHiAttrib PreProc 804071d4279SBram Moolenaarhi def link vimHiTerm Type 8055c73622aSBram Moolenaarhi def link vimHLMod PreProc 806071d4279SBram Moolenaarhi def link vimKeyword Statement 807071d4279SBram Moolenaarhi def link vimMark Number 808071d4279SBram Moolenaarhi def link vimMenuName PreProc 809071d4279SBram Moolenaarhi def link vimNotation Special 810071d4279SBram Moolenaarhi def link vimNumber Number 8115c73622aSBram Moolenaarhi def link vimOperError Error 812071d4279SBram Moolenaarhi def link vimOper Operator 813071d4279SBram Moolenaarhi def link vimOption PreProc 8145c73622aSBram Moolenaarhi def link vimParenSep Delimiter 815071d4279SBram Moolenaarhi def link vimPatSep SpecialChar 816071d4279SBram Moolenaarhi def link vimPattern Type 817071d4279SBram Moolenaarhi def link vimRegister SpecialChar 818071d4279SBram Moolenaarhi def link vimScriptDelim Comment 8195c73622aSBram Moolenaarhi def link vimSearchDelim Statement 820071d4279SBram Moolenaarhi def link vimSep Delimiter 821071d4279SBram Moolenaarhi def link vimSetSep Statement 822071d4279SBram Moolenaarhi def link vimSpecFile Identifier 823071d4279SBram Moolenaarhi def link vimSpecial Type 824071d4279SBram Moolenaarhi def link vimStatement Statement 825071d4279SBram Moolenaarhi def link vimString String 826071d4279SBram Moolenaarhi def link vimSubstDelim Delimiter 827071d4279SBram Moolenaarhi def link vimSubstFlags Special 828071d4279SBram Moolenaarhi def link vimSubstSubstr SpecialChar 829071d4279SBram Moolenaarhi def link vimSynCaseError Error 8305c73622aSBram Moolenaarhi def link vimSynCase Type 831071d4279SBram Moolenaarhi def link vimSyncC Type 832071d4279SBram Moolenaarhi def link vimSyncError Error 833071d4279SBram Moolenaarhi def link vimSyncKey Type 834071d4279SBram Moolenaarhi def link vimSyncNone Type 8355c73622aSBram Moolenaarhi def link vimSynError Error 8365c73622aSBram Moolenaarhi def link vimSynOption Special 8375c73622aSBram Moolenaarhi def link vimSynReg Type 838071d4279SBram Moolenaarhi def link vimTodo Todo 839a93fa7eeSBram Moolenaarhi def link vimUserAttrbCmpltFunc Special 8405c73622aSBram Moolenaarhi def link vimUserCmdError Error 8415c73622aSBram Moolenaarhi def link vimUserFunc Normal 8423577c6faSBram Moolenaarhi def link vimWarn WarningMsg 843071d4279SBram Moolenaar 844cfbc5ee4SBram Moolenaar" Current Syntax Variable: {{{2 845071d4279SBram Moolenaarlet b:current_syntax = "vim" 846071d4279SBram Moolenaar" vim:ts=18 fdm=marker 847