1071d4279SBram Moolenaar" Vim syntax file 2d2ea7cf1SBram Moolenaar" Language: Vim 8.2 script 34f4d51a9SBram Moolenaar" Maintainer: Charles E. Campbell <[email protected]> 4*519cc559SBram Moolenaar" Last Change: November 10, 2021 5*519cc559SBram Moolenaar" Version: 8.2-14 66d5ad4c4SBram Moolenaar" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_VIM 7071d4279SBram Moolenaar" Automatically generated keyword lists: {{{1 8071d4279SBram Moolenaar 9071d4279SBram Moolenaar" Quit when a syntax file was already loaded {{{2 10071d4279SBram Moolenaarif exists("b:current_syntax") 11071d4279SBram Moolenaar finish 12071d4279SBram Moolenaarendif 136be7f873SBram Moolenaarlet s:keepcpo= &cpo 146be7f873SBram Moolenaarset cpo&vim 15071d4279SBram Moolenaar 16071d4279SBram Moolenaar" vimTodo: contains common special-notices for comments {{{2 17071d4279SBram Moolenaar" Use the vimCommentGroup cluster to add your own. 18e2719096SBram Moolenaarsyn keyword vimTodo contained COMBAK FIXME TODO XXX 19217ad920SBram Moolenaarsyn cluster vimCommentGroup contains=vimTodo,@Spell 20071d4279SBram Moolenaar 21071d4279SBram Moolenaar" regular vim commands {{{2 22113cb513SBram Moolenaarsyn keyword vimCommand contained a ar[gs] argl[ocal] ba[ll] bl[ast] brea[k] buffers ca caf[ter] cbo[ttom] cex[pr] cgete[xpr] cl[ist] cn[ext] colo[rscheme] cons[t] cs d[elete] delel delf[unction] dif[fupdate] difft[his] dli[st] ds[earch] echoc[onsole] em[enu] endw[hile] export filt[er] fo[ld] fu[nction] gvim helpt[ags] iabc[lear] import isp[lit] keepa l[ist] laf[ter] lbel[ow] lcscope lf[ile] lgr[ep] lli[st] lnf[ile] lol[der] lt[ag] lw[indow] menut[ranslate] mkvie[w] nbc[lose] noh[lsearch] ol[dfiles] pa[ckadd] po[p] prof[ile] pta[g] ptr[ewind] py3f[ile] pythonx quita[ll] redraws[tatus] rew[ind] rubyf[ile] sIg sa[rgument] sba[ll] sbr[ewind] scl scscope sfir[st] sgl sic sin sm[ap] snoreme spelld[ump] spellw[rong] srg sta[g] sts[elect] sus[pend] syncbind tabN[ext] tabl[ast] tabr[ewind] tcld[o] tj[ump] tlu tno[remap] tu[nmenu] undol[ist] v vie[w] vne[w] wh[ile] wn[ext] wv[iminfo] xmenu xunme 23113cb513SBram Moolenaarsyn keyword vimCommand contained ab arga[dd] argu[ment] bad[d] bm[odified] breaka[dd] bun[load] cabc[lear] cal[l] cc cf[ile] changes cla[st] cnew[er] com cope[n] cscope debug delep dell diffg[et] dig[raphs] do dsp[lit] echoe[rr] en[dif] ene[w] exu[sage] fin[d] foldc[lose] g h[elp] hi if in iuna[bbrev] keepalt la[st] lan[guage] lbo[ttom] ld[o] lfdo lgrepa[dd] lma lo[adview] lop[en] lua m[ove] mes[sages] mod[e] nbs[tart] nor omapc[lear] packl[oadall] popu[p] profd[el] ptf[irst] pts[elect] py3f[ile] pyx r[ead] redrawt[abline] ri[ght] rundo sIl sal[l] sbf[irst] sc scp se[t] sg sgn sie sip sme snoremenu spelli[nfo] spr[evious] sri star[tinsert] substitutepattern sv[iew] syntime tabc[lose] tabm[ove] tabs tclf[ile] tl[ast] tlunmenu to[pleft] tunma[p] unh[ide] var vim9[cmd] vs[plit] win[size] wp[revious] x[it] xnoreme xunmenu 24113cb513SBram Moolenaarsyn keyword vimCommand contained abc[lear] argd[elete] as[cii] balt bn[ext] breakd[el] bw[ipeout] cabo[ve] cat[ch] ccl[ose] cfdo chd[ir] class cnf[ile] comc[lear] cp[revious] cstag debugg[reedy] deletel delm[arks] diffo[ff] dir doau e[dit] echom[sg] enddef eval f[ile] fina[lly] foldd[oopen] go[to] ha[rdcopy] hid[e] ij[ump] inor j[oin] keepj[umps] lab[ove] lat lc[d] le[ft] lfir[st] lh[elpgrep] lmak[e] loadk lp[revious] luado ma[rk] mk[exrc] mz[scheme] new nore on[ly] pc[lose] pp[op] promptf[ind] ptj[ump] pu[t] py[thon] pyxdo rec[over] reg[isters] rightb[elow] rv[iminfo] sIn san[dbox] sbl[ast] scI scr[iptnames] setf[iletype] sgI sgp sig sir smenu so[urce] spellr[are] sr srl startg[replace] substituterepeat sw[apname] t tabd[o] tabn[ext] tags te[aroff] tlm tm[enu] tp[revious] type unl ve[rsion] vim9s[cript] wN[ext] winc[md] wq xa[ll] xnoremenu xwininfo 25113cb513SBram Moolenaarsyn keyword vimCommand contained abo[veleft] argdo au bd[elete] bo[tright] breakl[ist] cN[ext] cad[dbuffer] cb[uffer] cd cfir[st] che[ckpath] cle[arjumps] cnor comp[iler] cpf[ile] cun def deletep delp diffp[atch] disa[ssemble] doaut ea echon endf[unction] ex files fini[sh] folddoc[losed] gr[ep] helpc[lose] his[tory] il[ist] interface ju[mps] keepp[atterns] lad[dexpr] later lch[dir] lefta[bove] lg[etfile] lhi[story] lmapc[lear] loadkeymap lpf[ile] luafile mak[e] mks[ession] mzf[ile] nmapc[lear] nos[wapfile] opt[ions] pe[rl] pre[serve] promptr[epl] ptl[ast] pw[d] pydo pyxfile red[o] res[ize] ru[ntime] sI sIp sav[eas] sbm[odified] sce scripte[ncoding] setg[lobal] sgc sgr sign sl[eep] smile sor[t] spellr[epall] srI srn startr[eplace] sun[hide] sy tN[ext] tabe[dit] tabnew tc[d] ter[minal] tlmenu tma[p] tr[ewind] u[ndo] unlo[ckvar] verb[ose] vim[grep] w[rite] windo wqa[ll] xmapc[lear] xprop y[ank] 26113cb513SBram Moolenaarsyn keyword vimCommand contained addd arge[dit] bN[ext] bel[owright] bp[revious] bro[wse] cNf[ile] cadde[xpr] cbe[fore] cdo cg[etfile] checkt[ime] clo[se] co[py] con[tinue] cq[uit] cuna[bbrev] defc[ompile] deletl dep diffpu[t] dj[ump] dp earlier el[se] endfo[r] exi[t] filet fir[st] foldo[pen] grepa[dd] helpf[ind] i imapc[lear] intro k lN[ext] laddb[uffer] lb[uffer] lcl[ose] leg[acy] lgetb[uffer] ll lne[xt] loc[kmarks] lr[ewind] lv[imgrep] marks mksp[ell] n[ext] noa nu[mber] ownsyntax ped[it] prev[ious] ps[earch] ptn[ext] py3 pyf[ile] q[uit] redi[r] ret[ab] rub[y] sIc sIr sbN[ext] sbn[ext] scg scriptv[ersion] setl[ocal] sge sh[ell] sil[ent] sla[st] sn[ext] sp[lit] spellr[rare] src srp stj[ump] sunme syn ta[g] tabf[ind] tabo[nly] tch[dir] tf[irst] tln tmapc[lear] try una[bbreviate] uns[ilent] vert[ical] vimgrepa[dd] wa[ll] winp[os] wundo xme xr[estore] z[^.=] 27113cb513SBram Moolenaarsyn keyword vimCommand contained al[l] argg[lobal] b[uffer] bf[irst] br[ewind] bufdo c[hange] caddf[ile] cbel[ow] ce[nter] cgetb[uffer] chi[story] cmapc[lear] col[der] conf[irm] cr[ewind] cw[indow] delc[ommand] deletp di[splay] diffs[plit] dl dr[op] ec elsei[f] endt[ry] exp filetype fix[del] for gui helpg[rep] ia imp is[earch] kee[pmarks] lNf[ile] laddf[ile] lbe[fore] lcs lex[pr] lgete[xpr] lla[st] lnew[er] lockv[ar] ls lvimgrepa[dd] mat[ch] mkv[imrc] nb[key] noautocmd o[pen] p[rint] perld[o] pro ptN[ext] ptp[revious] py3do python3 qa[ll] redr[aw] retu[rn] rubyd[o] sIe sN[ext] sb[uffer] sbp[revious] sci scs sf[ind] sgi si sim[alt] sm[agic] sno[magic] spe[llgood] spellu[ndo] sre[wind] st[op] stopi[nsert] sunmenu sync tab tabfir[st] tabp[revious] tcl th[row] tlnoremenu tn[ext] ts[elect] undoj[oin] up[date] vi[sual] viu[sage] 28e2719096SBram Moolenaarsyn match vimCommand contained "\<z[-+^.=]\=\>" 29d2ea7cf1SBram Moolenaarsyn keyword vimStdPlugin contained Arguments Asm Break Cfilter Clear Continue DiffOrig Evaluate Finish Gdb Lfilter Man N[ext] Over P[rint] Program Run S Source Step Stop Termdebug TermdebugCommand TOhtml Winbar XMLent XMLns 30071d4279SBram Moolenaar 31071d4279SBram Moolenaar" vimOptions are caught only when contained in a vimSet {{{2 32113cb513SBram Moolenaarsyn keyword vimOption contained acd ambw arshape aw backupskip beval bk bri bufhidden cdpath cindent cm colorcolumn completeopt cp cscopeprg csprg culopt def diffexpr ea ei ep eventignore fdi fenc fileformat fkmap foldexpr foldopen fsync gfw gtt guipty hi hkp ignorecase imd imstatusfunc indentkeys isfname js langmap linebreak lmap lw mat maxmemtot mkspellmem mod mousef mousetime nf ofu para penc pm previewwindow printoptions pw qftf relativenumber rightleftcmd ru sbr scrollfocus sel shellcmdflag shellxquote showfulltag signcolumn smc spell splitbelow ssl stmp swapfile sxq tabstop tags tbs termguicolors textmode thesaurusfunc titlestring top ttimeout ttymouse twt undofile varsofttabstop verbosefile viminfofile wak weirdinvert wig wildoptions winheight wm wrapscan 33113cb513SBram Moolenaarsyn keyword vimOption contained ai anti asd awa balloondelay bevalterm bkc briopt buflisted cedit cink cmdheight columns completepopup cpo cscopequickfix csqf cursorbind define diffopt ead ek equalalways ex fdl fencs fileformats flp foldignore foldtext ft ghr guicursor guitablabel hid hl im imdisable imstyle indk isi key langmenu lines lnr lz matchpairs mco ml modeline mousefocus mp nrformats omnifunc paragraphs perldll pmbcs printdevice prompt pythondll quickfixtextfunc remap rl rubydll sc scrolljump selection shellpipe shiftround showmatch siso smd spellcapcheck splitright ssop sts swapsync syn tag tagstack tc termwinkey textwidth tildeop titlestring option to hi "there" tpm ttimeoutlen ttyscroll tx undolevels vartabstop vfile virtualedit warn wfh wildchar wim winminheight wmh write 34113cb513SBram Moolenaarsyn keyword vimOption contained akm antialias autochdir background ballooneval bex bl brk buftype cf cinkeys cmdwinheight com completeslash cpoptions cscoperelative csre cursorcolumn delcombine digraph eadirection emo equalprg expandtab fdls fex fileignorecase fml foldlevel formatexpr gcr gli guifont guitabtooltip hidden hlg imactivatefunc imi inc inex isident keymap langnoremap linespace loadplugins ma matchtime mef mle modelineexpr mousehide mps nu opendevice paste pex pmbfn printencoding pt pythonhome quoteescape renderoptions rlc ruf scb scrolloff selectmode shellquote shiftwidth showmode sj sn spellfile spo st su swb synmaxcol tagbsearch tal tcldll termwinscroll tf timeout tl tr ttm ttytype uc undoreload vb vi visualbell wb wfw wildcharm winaltkeys winminwidth wmnu writeany 35113cb513SBram Moolenaarsyn keyword vimOption contained al ar autoindent backspace balloonevalterm bexpr bo browsedir casemap cfu cino cmp comments concealcursor cpp cscopetag cst cursorline dex dip eb emoji errorbells exrc fdm ff filetype fmr foldlevelstart formatlistpat gd go guifontset helpfile highlight hls imactivatekey iminsert include inf isk keymodel langremap lisp lpl macatsui maxcombine menc mls modelines mousem msm number operatorfunc pastetoggle pexpr popt printexpr pumheight pythonthreedll rdt report rnu ruler scf scrollopt sessionoptions shellredir shm showtabline slm so spelllang spr sta sua swf syntax tagcase tb tenc termwinsize tfu timeoutlen tm ts tty tw udf updatecount vbs viewdir vop wc wh wildignore wincolor winptydll wmw writebackup 36113cb513SBram Moolenaarsyn keyword vimOption contained aleph arab autoread backup balloonexpr bg bomb bs cb ch cinoptions cms commentstring conceallevel cpt cscopetagorder csto cursorlineopt dg dir ed enc errorfile fcl fdn ffs fillchars fo foldmarker formatoptions gdefault gp guifontwide helpheight history hlsearch imaf ims includeexpr infercase iskeyword keywordprg laststatus lispwords lrm magic maxfuncdepth menuitems mm modifiable mousemodel mzq numberwidth opfunc patchexpr pfn pp printfont pumwidth pythonthreehome re restorescreen ro rulerformat scl scs sft shellslash shortmess shq sm softtabstop spelloptions sps stal suffixes switchbuf ta tagfunc tbi term termwintype tgc title to tsl ttybuiltin twk udir updatetime vdir viewoptions vsts wcm whichwrap wildignorecase window winwidth wop writedelay 37113cb513SBram Moolenaarsyn keyword vimOption contained allowrevins arabic autoshelldir backupcopy bdir bh breakat bsdir cc charconvert cinw co compatible confirm crb cscopeverbose csverb cwh dict directory edcompatible encoding errorformat fcs fdo fic fixendofline foldclose foldmethod formatprg gfm grepformat guiheadroom helplang hk ic imak imsearch incsearch insertmode isp km lazyredraw list ls makeef maxmapdepth mfd mmd modified mouses mzquantum nuw osfiletype patchmode ph preserveindent printheader pvh pyx readonly revins rop runtimepath scr sect sh shelltemp shortname si smartcase sol spellsuggest sr startofline suffixesadd sws tabline taglength tbidi termbidi terse tgst titlelen toolbar tsr ttyfast tws ul ur ve vif vts wcr wi wildmenu winfixheight wiv wrap ws 38113cb513SBram Moolenaarsyn keyword vimOption contained altkeymap arabicshape autowrite backupdir bdlay bin breakindent bsk ccv ci cinwords cocu complete copyindent cryptmethod csl cuc debug dictionary display ef endofline esckeys fdc fdt fileencoding fixeol foldcolumn foldminlines fp gfn grepprg guiligatures hf hkmap icon imc imsf inde is isprint kmp lbr listchars lsp makeencoding maxmem mh mmp more mouseshape mzschemedll odev pa path pheader previewheight printmbcharset pvp pyxversion redrawtime ri rs sb scroll sections shcf shelltype showbreak sidescroll smartindent sp spf srr statusline sw sxe tabpagemax tagrelative tbis termencoding textauto thesaurus titleold toolbariconsize tsrfu ttym twsl undodir ut verbose viminfo wa wd wic wildmode winfixwidth wiw wrapmargin ww 39113cb513SBram Moolenaarsyn keyword vimOption contained ambiwidth ari autowriteall backupext belloff binary breakindentopt bt cd cin clipboard cole completefunc cot cscopepathcomp cspc cul deco diff dy efm eol et fde fen fileencodings fk foldenable foldnestmax fs gfs gtl guioptions hh hkmapp iconstring imcmdline imst indentexpr isf joinspaces kp lcs lm luadll makeprg maxmempattern mis mmt mouse mouset mzschemegcdll oft packpath pdev pi previewpopup printmbfont pvw qe regexpengine rightleft rtp sbo scrollbind secure shell shellxescape showcmd sidescrolloff smarttab spc spl ss stl 40071d4279SBram Moolenaar 41071d4279SBram Moolenaar" vimOptions: These are the turn-off setting variants {{{2 42d2ea7cf1SBram Moolenaarsyn keyword vimOption contained noacd noallowrevins noantialias noarabic noarshape noautoindent noautowrite noawa noballoonevalterm nobin nobl nobri noci nocompatible nocp nocscopetag nocst nocul nocursorline nodg noea noedcompatible noemoji noequalalways noet noexrc nofileignorecase nofk nofs nogdefault nohidden nohkmapp nohlsearch noignorecase noimcmdline noincsearch noinsertmode nojs nolazyredraw nolisp noloadplugins nolz nomagic nomle nomodelineexpr nomodified nomousef nomousehide nonumber noopendevice nopi nopreviewwindow nopvw norelativenumber norestorescreen nori norl noro noru nosb noscb noscrollbind 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 noundofile novisualbell nowarn noweirdinvert nowfw nowildignorecase nowinfixheight nowiv nowrap nowrite nowritebackup 43d2ea7cf1SBram Moolenaarsyn keyword vimOption contained noai noaltkeymap noar noarabicshape noasd noautoread noautowriteall nobackup nobeval nobinary nobomb nobuflisted nocin noconfirm nocrb nocscopeverbose nocsverb nocursorbind nodeco nodiff noeb noek noendofline noerrorbells noex nofen nofixendofline nofkmap nofsync noguipty nohk nohkp noic noim noimd noinf nois nolangnoremap nolbr nolist nolpl noma nomh nomod nomodifiable nomore nomousefocus nonu noodev nopaste nopreserveindent noprompt noreadonly noremap norevins norightleft nornu nors noruler nosc noscf noscrollfocus 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 noudf novb nowa nowb nowfh nowic nowildmenu nowinfixwidth nowmnu nowrapscan nowriteany nows 44d2ea7cf1SBram Moolenaarsyn keyword vimOption contained noakm noanti noarab noari noautochdir noautoshelldir noaw noballooneval nobevalterm nobk nobreakindent nocf nocindent nocopyindent nocscoperelative nocsre nocuc nocursorcolumn nodelcombine nodigraph noed noemo noeol noesckeys noexpandtab nofic nofixeol nofoldenable nogd nohid nohkmap nohls noicon noimc noimdisable noinfercase nojoinspaces nolangremap nolinebreak nolnr nolrm nomacatsui noml nomodeline 45071d4279SBram Moolenaar 46071d4279SBram Moolenaar" vimOptions: These are the invertible variants {{{2 47d2ea7cf1SBram Moolenaarsyn keyword vimOption contained invacd invallowrevins invantialias invarabic invarshape invautoindent invautowrite invawa invballoonevalterm invbin invbl invbri invci invcompatible invcp invcscopetag invcst invcul invcursorline invdg invea invedcompatible invemoji invequalalways invet invexrc invfileignorecase invfk invfs invgdefault invhidden invhkmapp invhlsearch invignorecase invimcmdline invincsearch invinsertmode invjs invlazyredraw invlisp invloadplugins invlz invmagic invmle invmodelineexpr invmodified invmousef invmousehide invnumber invopendevice invpi invpreviewwindow invpvw invrelativenumber invrestorescreen invri invrl invro invru invsb invscb invscrollbind 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 invundofile invvisualbell invwarn invweirdinvert invwfw invwildignorecase invwinfixheight invwiv invwrap invwrite invwritebackup 48d2ea7cf1SBram Moolenaarsyn keyword vimOption contained invai invaltkeymap invar invarabicshape invasd invautoread invautowriteall invbackup invbeval invbinary invbomb invbuflisted invcin invconfirm invcrb invcscopeverbose invcsverb invcursorbind invdeco invdiff inveb invek invendofline inverrorbells invex invfen invfixendofline invfkmap invfsync invguipty invhk invhkp invic invim invimd invinf invis invlangnoremap invlbr invlist invlpl invma invmh invmod invmodifiable invmore invmousefocus invnu invodev invpaste invpreserveindent invprompt invreadonly invremap invrevins invrightleft invrnu invrs invruler invsc invscf invscrollfocus 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 invudf invvb invwa invwb invwfh invwic invwildmenu invwinfixwidth invwmnu invwrapscan invwriteany invws 49d2ea7cf1SBram Moolenaarsyn keyword vimOption contained invakm invanti invarab invari invautochdir invautoshelldir invaw invballooneval invbevalterm invbk invbreakindent invcf invcindent invcopyindent invcscoperelative invcsre invcuc invcursorcolumn invdelcombine invdigraph inved invemo inveol invesckeys invexpandtab invfic invfixeol invfoldenable invgd invhid invhkmap invhls invicon invimc invimdisable invinfercase invjoinspaces invlangremap invlinebreak invlnr invlrm invmacatsui invml invmodeline 50071d4279SBram Moolenaar 51071d4279SBram Moolenaar" termcap codes (which can also be set) {{{2 52d2ea7cf1SBram Moolenaarsyn keyword vimOption contained t_8b t_8u t_AF t_AL t_bc t_BE t_ce t_cl t_Co t_Cs t_CV t_db t_DL t_EI t_F2 t_F4 t_F6 t_F8 t_fd t_fs t_IE t_k1 t_k2 t_K3 t_K4 t_K5 t_K6 t_K7 t_K8 t_K9 t_kb t_KB t_kd t_KD t_KE 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_PE t_PS t_RB t_RC t_RF t_Ri t_RI t_RS t_RT t_RV t_Sb t_SC t_se t_Sf t_SH t_Si t_SI t_so t_sr t_SR t_ST t_te t_Te t_TE t_ti t_TI t_ts t_Ts t_u7 t_ue t_us t_ut t_vb t_ve t_vi t_vs t_VS t_WP t_WS t_xn t_xs t_ZH t_ZR 53d2ea7cf1SBram Moolenaarsyn keyword vimOption contained t_8f t_AB t_al t_AU t_BD t_cd t_Ce t_cm t_cs t_CS t_da t_dl t_EC t_F1 t_F3 t_F5 t_F7 t_F9 t_fe t_GP t_IS t_K1 t_k3 t_k4 t_k5 t_k6 t_k7 t_k8 t_k9 t_KA t_kB t_KC t_kD t_ke t_KF 54b0d45e7fSBram Moolenaarsyn match vimOption contained "t_%1" 55071d4279SBram Moolenaarsyn match vimOption contained "t_#2" 56071d4279SBram Moolenaarsyn match vimOption contained "t_#4" 576d5ad4c4SBram Moolenaarsyn match vimOption contained "t_@7" 58b0d45e7fSBram Moolenaarsyn match vimOption contained "t_*7" 59b0d45e7fSBram Moolenaarsyn match vimOption contained "t_&8" 60b0d45e7fSBram Moolenaarsyn match vimOption contained "t_%i" 61071d4279SBram Moolenaarsyn match vimOption contained "t_k;" 62071d4279SBram Moolenaar 6303413f44SBram Moolenaar" unsupported settings: some were supported by vi but don't do anything in vim {{{2 6403413f44SBram Moolenaar" others have been dropped along with msdos support 6503413f44SBram Moolenaarsyn keyword vimErrSetting contained bioskey biosk conskey consk autoprint beautify flash graphic hardtabs mesg novice open op optimize redraw slow slowopen sourceany w300 w1200 w9600 hardtabs ht nobioskey nobiosk noconskey noconsk noautoprint nobeautify noflash nographic nohardtabs nomesg nonovice noopen noop nooptimize noredraw noslow noslowopen nosourceany now300 now1200 now9600 w1200 w300 w9600 66071d4279SBram Moolenaar 6780a94a58SBram Moolenaar" AutoCmd Events {{{2 68071d4279SBram Moolenaarsyn case ignore 69113cb513SBram Moolenaarsyn keyword vimAutoEvent contained BufAdd BufDelete BufFilePost BufHidden BufNew BufRead BufReadPost BufUnload BufWinLeave BufWrite BufWritePost CmdlineChanged CmdlineLeave CmdwinEnter CmdwinLeave ColorScheme ColorSchemePre CompleteChanged CompleteDone CompleteDonePre CursorHold CursorHoldI CursorMoved CursorMovedI DiffUpdated DirChanged EncodingChanged ExitPre FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileChangedShellPost FileEncoding FileExplorer FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter GUIFailed InsertChange InsertCharPre InsertEnter InsertLeave InsertLeavePre MenuPopup ModeChanged OptionSet QuickFixCmdPost QuickFixCmdPre QuitPre RemoteReply SafeState SafeStateAgain SessionLoadPost ShellCmdPost ShellFilterPost SigUSR1 SourceCmd SourcePost SourcePre SpellFileMissing StdinReadPost StdinReadPre SwapExists Syntax TabClosed TabEnter TabLeave TabNew TermChanged TerminalOpen TerminalWinOpen TermResponse TextChanged TextChangedI TextChangedP TextYankPost User VimEnter VimLeave VimLeavePre VimResized VimResume VimSuspend WinEnter WinLeave WinNew 70113cb513SBram Moolenaarsyn keyword vimAutoEvent contained BufCreate BufEnter BufFilePre BufLeave BufNewFile BufReadCmd BufReadPre BufWinEnter BufWipeout BufWriteCmd BufWritePre CmdlineEnter CmdUndefined 71071d4279SBram Moolenaar 72071d4279SBram Moolenaar" Highlight commonly used Groupnames {{{2 73b2c0350cSBram 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 74071d4279SBram Moolenaar 75071d4279SBram Moolenaar" Default highlighting groups {{{2 761ff14ba2SBram Moolenaarsyn keyword vimHLGroup contained ColorColumn Cursor CursorColumn CursorIM CursorLine CursorLineNr DiffAdd DiffChange DiffDelete DiffText Directory EndOfBuffer ErrorMsg FoldColumn Folded IncSearch LineNr LineNrAbove LineNrBelow MatchParen Menu ModeMsg MoreMsg NonText Normal Pmenu PmenuSbar PmenuSel PmenuThumb Question QuickFixLine Scrollbar Search SignColumn SpecialKey SpellBad SpellCap SpellLocal SpellRare StatusLine StatusLineNC StatusLineTerm TabLine TabLineFill TabLineSel Terminal Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu 77293ee4d4SBram Moolenaarsyn match vimHLGroup contained "Conceal" 78071d4279SBram Moolenaarsyn case match 79071d4279SBram Moolenaar 80071d4279SBram Moolenaar" Function Names {{{2 81*519cc559SBram Moolenaarsyn keyword vimFuncName contained abs argc assert_equal assert_match atan browse bufloaded byteidx charclass chdir ch_log ch_sendexpr col copy debugbreak diff_hlID empty execute expandcmd filter floor foldlevel function getchangelist getcmdline getcursorcharpos getftime getmarklist getreg gettabwinvar getwinposx globpath histadd hlget indent inputrestore invert items job_status json_decode libcallnr list2str log mapcheck matchaddpos matchfuzzypos menu_info nextnonblank popup_atcursor popup_dialog popup_getoptions popup_menu popup_show prompt_setcallback prop_clear prop_type_change pumvisible range reduce reltimestr remote_send resolve screenchar screenstring searchpairpos setbufvar setcursorcharpos setmatches settabwinvar shiftwidth sign_place simplify sound_clear spellbadword state strcharpart stridx strridx swapinfo synIDtrans tabpagenr tanh term_getaltscreen term_getline term_gettty term_setansicolors term_start test_garbagecollect_now test_ignore_error test_null_job test_override test_srand_seed timer_start tr undofile visualmode win_execute winheight winnr win_splitmove 82*519cc559SBram Moolenaarsyn keyword vimFuncName contained acos argidx assert_equalfile assert_nobeep atan2 browsedir bufname byteidxcomp charcol ch_evalexpr ch_logfile ch_sendraw complete cos deepcopy digraph_get environ exepath extend finddir fmod foldtext garbagecollect getchar getcmdpos getcwd getftype getmatches getreginfo gettagstack getwinposy has histdel hlID index inputsave isdirectory job_getchannel job_stop json_encode line listener_add log10 mapnew matcharg matchlist min nr2char popup_beval popup_filter_menu popup_getpos popup_move pow prompt_setinterrupt prop_find prop_type_delete py3eval readblob reg_executing remote_expr remote_startserver reverse screenchars search searchpos setcellwidths setenv setpos settagstack sign_define sign_placelist sin soundfold spellsuggest str2float strchars string strtrans swapname synstack tabpagewinnr tempname term_getansicolors term_getscrolled terminalprops term_setapi term_wait test_garbagecollect_soon test_null_blob test_null_list test_refcount test_unknown timer_stop trim undotree wildmenumode win_findbuf win_id2tabwin winrestcmd winwidth 83*519cc559SBram Moolenaarsyn keyword vimFuncName contained add arglistid assert_exception assert_notequal balloon_gettext bufadd bufnr call charidx ch_evalraw ch_open ch_setoptions complete_add cosh delete digraph_getlist escape exists extendnew findfile fnameescape foldtextresult get getcharmod getcmdtype getenv getimstatus getmousepos getregtype gettext getwinvar has_key histget hlset input inputsecret isinf job_info join keys line2byte listener_flush luaeval mapset matchdelete matchstr mkdir or popup_clear popup_filter_yesno popup_hide popup_notification prevnonblank prompt_setprompt prop_list prop_type_get pyeval readdir reg_recording remote_foreground remove round screencol searchcount server2client setcharpos setfperm setqflist setwinvar sign_getdefined sign_undefine sinh sound_playevent split str2list strdisplaywidth strlen strwidth synconcealed system tagfiles term_dumpdiff term_getattr term_getsize term_list term_setkill test_alloc_fail test_getvalue test_null_channel test_null_partial test_scrollbar test_void timer_stopall trunc uniq winbufnr win_getid win_id2win winrestview wordcount 84*519cc559SBram Moolenaarsyn keyword vimFuncName contained and argv assert_fails assert_notmatch balloon_show bufexists bufwinid ceil ch_canread ch_getbufnr ch_read ch_status complete_check count deletebufline digraph_set eval exists_compiled feedkeys flatten fnamemodify foreground getbufinfo getcharpos getcmdwintype getfontname getjumplist getpid gettabinfo getwininfo glob haslocaldir histnr hostname inputdialog insert islocked job_setoptions js_decode len lispindent listener_remove map match matchend matchstrpos mode pathshorten popup_close popup_findinfo popup_list popup_setoptions printf prop_add prop_remove prop_type_list pyxeval readdirex reltime remote_peek rename rubyeval screenpos searchdecl serverlist setcharsearch setline setreg sha256 sign_getplaced sign_unplace slice sound_playfile sqrt str2nr strftime strpart submatch synID systemlist taglist term_dumpload term_getcursor term_getstatus term_scrape term_setrestore test_autochdir test_gui_drop_files test_null_dict test_null_string test_setmouse timer_info tolower type values wincol win_gettype winlayout winsaveview writefile 85*519cc559SBram Moolenaarsyn keyword vimFuncName contained append asin assert_false assert_report balloon_split buflisted bufwinnr changenr ch_close ch_getjob ch_readblob cindent complete_info cscope_connection did_filetype digraph_setlist eventhandler exp filereadable flattennew foldclosed fullcommand getbufline getcharsearch getcompletion getfperm getline getpos gettabvar getwinpos glob2regpat hasmapto hlexists iconv inputlist interrupt isnan job_start js_encode libcall list2blob localtime maparg matchadd matchfuzzy max mzeval perleval popup_create popup_findpreview popup_locate popup_settext prompt_getprompt prop_add_list prop_type_add pum_getpos rand readfile reltimefloat remote_read repeat screenattr screenrow searchpair setbufline setcmdpos setloclist settabvar shellescape sign_jump sign_unplacelist sort sound_stop srand strcharlen strgetchar strptime substitute synIDattr tabpagebuflist tan term_dumpwrite term_getjob term_gettitle term_sendkeys term_setsize test_feedinput test_gui_mouse_event test_null_function test_option_not_set test_settime timer_pause toupper typename virtcol windowsversion win_gotoid winline win_screenpos xor 86*519cc559SBram Moolenaarsyn keyword vimFuncName contained appendbufline assert_beeps assert_inrange assert_true blob2list bufload byte2line char2nr ch_close_in ch_info ch_readraw clearmatches confirm cursor diff_filler echoraw executable expand filewritable float2nr foldclosedend funcref getbufvar getcharstr getcurpos getfsize getloclist getqflist 87071d4279SBram Moolenaar 88ac7bd638SBram Moolenaar"--- syntax here and above generated by mkvimvim --- 89cfbc5ee4SBram Moolenaar" Special Vim Highlighting (not automatic) {{{1 90071d4279SBram Moolenaar 911ff14ba2SBram Moolenaar" Set up folding commands {{{2 921ff14ba2SBram Moolenaarif exists("g:vimsyn_folding") && g:vimsyn_folding =~# '[afhlmpPrt]' 93f391327aSBram Moolenaar if g:vimsyn_folding =~# 'a' 94a0f849eeSBram Moolenaar com! -nargs=* VimFolda <args> fold 95a0f849eeSBram Moolenaar else 96a0f849eeSBram Moolenaar com! -nargs=* VimFolda <args> 97a0f849eeSBram Moolenaar endif 98f391327aSBram Moolenaar if g:vimsyn_folding =~# 'f' 99a0f849eeSBram Moolenaar com! -nargs=* VimFoldf <args> fold 100a0f849eeSBram Moolenaar else 101a0f849eeSBram Moolenaar com! -nargs=* VimFoldf <args> 102a0f849eeSBram Moolenaar endif 1031ff14ba2SBram Moolenaar if g:vimsyn_folding =~# 'h' 1041ff14ba2SBram Moolenaar com! -nargs=* VimFoldh <args> fold 1051ff14ba2SBram Moolenaar else 1061ff14ba2SBram Moolenaar com! -nargs=* VimFoldh <args> 1071ff14ba2SBram Moolenaar endif 108f391327aSBram Moolenaar if g:vimsyn_folding =~# 'l' 109a0f849eeSBram Moolenaar com! -nargs=* VimFoldl <args> fold 110a0f849eeSBram Moolenaar else 111a0f849eeSBram Moolenaar com! -nargs=* VimFoldl <args> 112a0f849eeSBram Moolenaar endif 113f391327aSBram Moolenaar if g:vimsyn_folding =~# 'm' 114a0f849eeSBram Moolenaar com! -nargs=* VimFoldm <args> fold 115a0f849eeSBram Moolenaar else 116a0f849eeSBram Moolenaar com! -nargs=* VimFoldm <args> 117a0f849eeSBram Moolenaar endif 118f391327aSBram Moolenaar if g:vimsyn_folding =~# 'p' 119a0f849eeSBram Moolenaar com! -nargs=* VimFoldp <args> fold 120a0f849eeSBram Moolenaar else 121a0f849eeSBram Moolenaar com! -nargs=* VimFoldp <args> 122a0f849eeSBram Moolenaar endif 123f391327aSBram Moolenaar if g:vimsyn_folding =~# 'P' 124a0f849eeSBram Moolenaar com! -nargs=* VimFoldP <args> fold 125a0f849eeSBram Moolenaar else 126a0f849eeSBram Moolenaar com! -nargs=* VimFoldP <args> 127a0f849eeSBram Moolenaar endif 128f391327aSBram Moolenaar if g:vimsyn_folding =~# 'r' 129a0f849eeSBram Moolenaar com! -nargs=* VimFoldr <args> fold 130a0f849eeSBram Moolenaar else 131a0f849eeSBram Moolenaar com! -nargs=* VimFoldr <args> 132a0f849eeSBram Moolenaar endif 133f391327aSBram Moolenaar if g:vimsyn_folding =~# 't' 134a0f849eeSBram Moolenaar com! -nargs=* VimFoldt <args> fold 135a0f849eeSBram Moolenaar else 136a0f849eeSBram Moolenaar com! -nargs=* VimFoldt <args> 137a0f849eeSBram Moolenaar endif 138a0f849eeSBram Moolenaarelse 139a0f849eeSBram Moolenaar com! -nargs=* VimFolda <args> 140a0f849eeSBram Moolenaar com! -nargs=* VimFoldf <args> 1411ff14ba2SBram Moolenaar com! -nargs=* VimFoldh <args> 142a0f849eeSBram Moolenaar com! -nargs=* VimFoldl <args> 143a0f849eeSBram Moolenaar com! -nargs=* VimFoldm <args> 144a0f849eeSBram Moolenaar com! -nargs=* VimFoldp <args> 145a0f849eeSBram Moolenaar com! -nargs=* VimFoldP <args> 146a0f849eeSBram Moolenaar com! -nargs=* VimFoldr <args> 147a0f849eeSBram Moolenaar com! -nargs=* VimFoldt <args> 148a0f849eeSBram Moolenaarendif 149a0f849eeSBram Moolenaar 1501ff14ba2SBram Moolenaar" commands not picked up by the generator (due to non-standard format) {{{2 151fa01c39dSBram Moolenaarsyn keyword vimCommand contained py3 152fa01c39dSBram Moolenaar 1533577c6faSBram Moolenaar" Deprecated variable options {{{2 1543577c6faSBram Moolenaarif exists("g:vim_minlines") 1553577c6faSBram Moolenaar let g:vimsyn_minlines= g:vim_minlines 1563577c6faSBram Moolenaarendif 1573577c6faSBram Moolenaarif exists("g:vim_maxlines") 1583577c6faSBram Moolenaar let g:vimsyn_maxlines= g:vim_maxlines 1593577c6faSBram Moolenaarendif 1603577c6faSBram Moolenaarif exists("g:vimsyntax_noerror") 1613577c6faSBram Moolenaar let g:vimsyn_noerror= g:vimsyntax_noerror 1623577c6faSBram Moolenaarendif 1633577c6faSBram Moolenaar 16403413f44SBram Moolenaar" Variable options {{{2 16503413f44SBram Moolenaarif exists("g:vim_maxlines") 16603413f44SBram Moolenaar let s:vimsyn_maxlines= g:vim_maxlines 16703413f44SBram Moolenaarelse 16803413f44SBram Moolenaar let s:vimsyn_maxlines= 60 16903413f44SBram Moolenaarendif 17003413f44SBram Moolenaar 171cfbc5ee4SBram Moolenaar" Numbers {{{2 172071d4279SBram Moolenaar" ======= 1734072ba57SBram Moolenaarsyn match vimNumber '\<\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\=' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment 1744072ba57SBram Moolenaarsyn match vimNumber '-\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\=' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment 1754072ba57SBram Moolenaarsyn match vimNumber '\<0[xX]\x\+' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment 1764072ba57SBram Moolenaarsyn match vimNumber '\%(^\|\A\)\zs#\x\{6}' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment 1774072ba57SBram Moolenaarsyn match vimNumber '\<0[zZ][a-zA-Z0-9.]\+' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment 1784072ba57SBram Moolenaarsyn match vimNumber '0[0-7]\+' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment 179d2ea7cf1SBram Moolenaarsyn match vimNumber '0[bB][01]\+' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment 180071d4279SBram Moolenaar 1816c1e1570SBram Moolenaar" All vimCommands are contained by vimIsCommand. {{{2 182d2855f54SBram Moolenaarsyn match vimCmdSep "[:|]\+" skipwhite nextgroup=vimAddress,vimAutoCmd,vimEcho,vimIsCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd 183293ee4d4SBram Moolenaarsyn match vimIsCommand "\<\h\w*\>" contains=vimCommand 18483d1b190SBram Moolenaarsyn match vimVar contained "\<\h[a-zA-Z0-9#_]*\>" 185f37506f6SBram Moolenaarsyn match vimVar "\<[bwglstav]:\h[a-zA-Z0-9#_]*\>" 186d2855f54SBram Moolenaarsyn match vimVar "\s\zs&\a\+\>" 187f37506f6SBram Moolenaarsyn match vimFBVar contained "\<[bwglstav]:\h[a-zA-Z0-9#_]*\>" 1883b1ddfedSBram Moolenaarsyn keyword vimCommand contained in 189071d4279SBram Moolenaar 190cfbc5ee4SBram Moolenaar" Insertions And Appends: insert append {{{2 191*519cc559SBram Moolenaar" (buftype != nofile test avoids having append, change, insert show up in the command window) 192071d4279SBram Moolenaar" ======================= 193*519cc559SBram Moolenaarif &buftype != 'nofile' 194071d4279SBram Moolenaar syn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=a\%[ppend]$" matchgroup=vimCommand end="^\.$"" 195071d4279SBram Moolenaar syn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=c\%[hange]$" matchgroup=vimCommand end="^\.$"" 196071d4279SBram Moolenaar syn region vimInsert matchgroup=vimCommand start="^[: \t]*\(\d\+\(,\d\+\)\=\)\=i\%[nsert]$" matchgroup=vimCommand end="^\.$"" 197*519cc559SBram Moolenaarendif 198071d4279SBram Moolenaar 199cfbc5ee4SBram Moolenaar" Behave! {{{2 200071d4279SBram Moolenaar" ======= 201071d4279SBram Moolenaarsyn match vimBehave "\<be\%[have]\>" skipwhite nextgroup=vimBehaveModel,vimBehaveError 202071d4279SBram Moolenaarsyn keyword vimBehaveModel contained mswin xterm 2036be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nobehaveerror") 204071d4279SBram Moolenaar syn match vimBehaveError contained "[^ ]\+" 205cfbc5ee4SBram Moolenaarendif 206071d4279SBram Moolenaar 207cfbc5ee4SBram Moolenaar" Filetypes {{{2 208071d4279SBram Moolenaar" ========= 209293ee4d4SBram Moolenaarsyn match vimFiletype "\<filet\%[ype]\(\s\+\I\i*\)*" skipwhite contains=vimFTCmd,vimFTOption,vimFTError 2106be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_vimFTError") 211071d4279SBram Moolenaar syn match vimFTError contained "\I\i*" 212cfbc5ee4SBram Moolenaarendif 213071d4279SBram Moolenaarsyn keyword vimFTCmd contained filet[ype] 214071d4279SBram Moolenaarsyn keyword vimFTOption contained detect indent off on plugin 215071d4279SBram Moolenaar 216cfbc5ee4SBram Moolenaar" Augroup : vimAugroupError removed because long augroups caused sync'ing problems. {{{2 217071d4279SBram Moolenaar" ======= : Trade-off: Increasing synclines with slower editing vs augroup END error checking. 218acc22406SBram Moolenaarsyn cluster vimAugroupList contains=vimAugroup,vimIsCommand,vimUserCmd,vimExecute,vimNotFunc,vimFuncName,vimFunction,vimFunctionError,vimLineComment,vimNotFunc,vimMap,vimSpecFile,vimOper,vimNumber,vimOperParen,vimComment,vim9Comment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vim9Comment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue,vimSetEqual,vimOption 219f391327aSBram Moolenaarif exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'a' 220b4ff518dSBram Moolenaar syn region vimAugroup fold matchgroup=vimAugroupKey start="\<aug\%[roup]\>\ze\s\+\K\k*" end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>" contains=vimAutoCmd,@vimAugroupList 221b4ff518dSBram Moolenaarelse 222b4ff518dSBram Moolenaar syn region vimAugroup matchgroup=vimAugroupKey start="\<aug\%[roup]\>\ze\s\+\K\k*" end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>" contains=vimAutoCmd,@vimAugroupList 223b4ff518dSBram Moolenaarendif 2243b1ddfedSBram Moolenaarsyn match vimAugroup "aug\%[roup]!" contains=vimAugroupKey 2256be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noaugrouperror") 226071d4279SBram Moolenaar syn match vimAugroupError "\<aug\%[roup]\>\s\+[eE][nN][dD]\>" 227cfbc5ee4SBram Moolenaarendif 22883d1b190SBram Moolenaarsyn keyword vimAugroupKey contained aug[roup] 229071d4279SBram Moolenaar 230cfbc5ee4SBram Moolenaar" Operators: {{{2 231071d4279SBram Moolenaar" ========= 2324d8f4761SBram Moolenaarsyn cluster vimOperGroup contains=vimEnvvar,vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimType,vimRegister,vimContinue,vim9Comment 2336c1e1570SBram Moolenaarsyn match vimOper "||\|&&\|[-+.!]" skipwhite nextgroup=vimString,vimSpecFile 234113cb513SBram Moolenaarsyn match vimOper "\%#=1\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\|!\~#\)[?#]\{0,2}" skipwhite nextgroup=vimString,vimSpecFile 235113cb513SBram Moolenaarsyn match vimOper "\(\<is\|\<isnot\)[?#]\{0,2}\>" skipwhite nextgroup=vimString,vimSpecFile 236388a5d4fSBram Moolenaarsyn region vimOperParen matchgroup=vimParenSep start="(" end=")" contains=vimoperStar,@vimOperGroup 2374072ba57SBram Moolenaarsyn region vimOperParen matchgroup=vimSep start="#\={" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar 2386be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror") 239071d4279SBram Moolenaar syn match vimOperError ")" 240cfbc5ee4SBram Moolenaarendif 241071d4279SBram Moolenaar 2423577c6faSBram Moolenaar" Functions : Tag is provided for those who wish to highlight tagged functions {{{2 2433577c6faSBram Moolenaar" ========= 2445c73622aSBram Moolenaarsyn cluster vimFuncList contains=vimCommand,vimFunctionError,vimFuncKey,Tag,vimFuncSID 245d58a3bf7SBram Moolenaarsyn cluster vimFuncBodyList contains=vimAbb,vimAddress,vimAugroupKey,vimAutoCmd,vimCmplxRepeat,vimComment,vim9Comment,vimContinue,vimCtrlChar,vimEcho,vimEchoHL,vimEnvvar,vimExecute,vimIsCommand,vimFBVar,vimFunc,vimFunction,vimFuncVar,vimGlobal,vimHighlight,vimIsCommand,vimLet,vimLetHereDoc,vimLineComment,vimMap,vimMark,vimNorm,vimNotation,vimNotFunc,vimNumber,vimOper,vimOperParen,vimRegion,vimRegister,vimSearch,vimSet,vimSpecFile,vimString,vimSubst,vimSynLine,vimUnmap,vimUserCommand 2464d8f4761SBram Moolenaarsyn match vimFunction "\<\(fu\%[nction]\)!\=\s\+\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)*\ze\s*(" contains=@vimFuncList nextgroup=vimFuncBody 2474d8f4761SBram Moolenaarsyn match vimFunction "\<def!\=\ze\s*(" contains=@vimFuncList nextgroup=vimFuncBody 2485c73622aSBram Moolenaar 249f391327aSBram Moolenaarif exists("g:vimsyn_folding") && g:vimsyn_folding =~# 'f' 2508a7d6542SBram Moolenaar syn region vimFuncBody contained fold start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\|enddef\>\)" contains=@vimFuncBodyList 251b4ff518dSBram Moolenaarelse 2528a7d6542SBram Moolenaar syn region vimFuncBody contained start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\|enddef\>\)" contains=@vimFuncBodyList 253b4ff518dSBram Moolenaarendif 254b4ff518dSBram Moolenaarsyn match vimFuncVar contained "a:\(\K\k*\|\d\+\)" 2553577c6faSBram Moolenaarsyn match vimFuncSID contained "\c<sid>\|\<s:" 2563577c6faSBram Moolenaarsyn keyword vimFuncKey contained fu[nction] 2578a7d6542SBram Moolenaarsyn keyword vimFuncKey contained def 2583577c6faSBram Moolenaarsyn match vimFuncBlank contained "\s\+" 2593577c6faSBram Moolenaar 2603577c6faSBram Moolenaarsyn keyword vimPattern contained start skip end 2613577c6faSBram Moolenaar 2624d8f4761SBram Moolenaar" vimTypes : new for vim9 2634d8f4761SBram Moolenaarsyn match vimType ":\s*\zs\<\(bool\|number\|float\|string\|blob\|list<\|dict<\|job\|channel\|func\)\>" 2644d8f4761SBram Moolenaar 265cfbc5ee4SBram Moolenaar" Special Filenames, Modifiers, Extension Removal: {{{2 266071d4279SBram Moolenaar" =============================================== 267071d4279SBram Moolenaarsyn match vimSpecFile "<c\(word\|WORD\)>" nextgroup=vimSpecFileMod,vimSubst 268071d4279SBram Moolenaarsyn match vimSpecFile "<\([acs]file\|amatch\|abuf\)>" nextgroup=vimSpecFileMod,vimSubst 269071d4279SBram Moolenaarsyn match vimSpecFile "\s%[ \t:]"ms=s+1,me=e-1 nextgroup=vimSpecFileMod,vimSubst 270071d4279SBram Moolenaarsyn match vimSpecFile "\s%$"ms=s+1 nextgroup=vimSpecFileMod,vimSubst 271071d4279SBram Moolenaarsyn match vimSpecFile "\s%<"ms=s+1,me=e-1 nextgroup=vimSpecFileMod,vimSubst 272071d4279SBram Moolenaarsyn match vimSpecFile "#\d\+\|[#%]<\>" nextgroup=vimSpecFileMod,vimSubst 273071d4279SBram Moolenaarsyn match vimSpecFileMod "\(:[phtre]\)\+" contained 274071d4279SBram Moolenaar 275cfbc5ee4SBram Moolenaar" User-Specified Commands: {{{2 276071d4279SBram Moolenaar" ======================= 2772c7f8c57SBram Moolenaarsyn cluster vimUserCmdList contains=vimAddress,vimSyntax,vimHighlight,vimAutoCmd,vimCmplxRepeat,vimComment,vim9Comment,vimCtrlChar,vimEscapeBrace,vimFunc,vimFuncName,vimFunction,vimFunctionError,vimIsCommand,vimMark,vimNotation,vimNumber,vimOper,vimRegion,vimRegister,vimLet,vimSet,vimSetEqual,vimSetString,vimSpecFile,vimString,vimSubst,vimSubstRep,vimSubstRange,vimSynLine 278071d4279SBram Moolenaarsyn keyword vimUserCommand contained com[mand] 279d58a3bf7SBram Moolenaarsyn match vimUserCmd "\<com\%[mand]!\=\>.*$" contains=vimUserAttrb,vimUserAttrbError,vimUserCommand,@vimUserCmdList,vimComFilter 280b4ff518dSBram Moolenaarsyn match vimUserAttrbError contained "-\a\+\ze\s" 281b4ff518dSBram Moolenaarsyn match vimUserAttrb contained "-nargs=[01*?+]" contains=vimUserAttrbKey,vimOper 282b4ff518dSBram Moolenaarsyn match vimUserAttrb contained "-complete=" contains=vimUserAttrbKey,vimOper nextgroup=vimUserAttrbCmplt,vimUserCmdError 283b4ff518dSBram Moolenaarsyn match vimUserAttrb contained "-range\(=%\|=\d\+\)\=" contains=vimNumber,vimOper,vimUserAttrbKey 284b4ff518dSBram Moolenaarsyn match vimUserAttrb contained "-count\(=\d\+\)\=" contains=vimNumber,vimOper,vimUserAttrbKey 285b4ff518dSBram Moolenaarsyn match vimUserAttrb contained "-bang\>" contains=vimOper,vimUserAttrbKey 286071d4279SBram Moolenaarsyn match vimUserAttrb contained "-bar\>" contains=vimOper,vimUserAttrbKey 287b4ff518dSBram Moolenaarsyn match vimUserAttrb contained "-buffer\>" contains=vimOper,vimUserAttrbKey 288b4ff518dSBram Moolenaarsyn match vimUserAttrb contained "-register\>" contains=vimOper,vimUserAttrbKey 2896be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nousercmderror") 290071d4279SBram Moolenaar syn match vimUserCmdError contained "\S\+\>" 291cfbc5ee4SBram Moolenaarendif 292071d4279SBram Moolenaarsyn case ignore 293071d4279SBram Moolenaarsyn keyword vimUserAttrbKey contained bar ban[g] cou[nt] ra[nge] com[plete] n[args] re[gister] 294bc8801c9SBram Moolenaarsyn keyword vimUserAttrbCmplt contained augroup buffer behave color command compiler cscope dir environment event expression file file_in_path filetype function help highlight history locale mapping menu option packadd shellcmd sign syntax syntime tag tag_listfiles user var 295a93fa7eeSBram Moolenaarsyn keyword vimUserAttrbCmplt contained custom customlist nextgroup=vimUserAttrbCmpltFunc,vimUserCmdError 2969da7ff70SBram Moolenaarsyn match vimUserAttrbCmpltFunc contained ",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\h\w*\)\+\|\h\w*\)"hs=s+1 nextgroup=vimUserCmdError 297a93fa7eeSBram Moolenaar 298071d4279SBram Moolenaarsyn case match 299071d4279SBram Moolenaarsyn match vimUserAttrbCmplt contained "custom,\u\w*" 300071d4279SBram Moolenaar 301cfbc5ee4SBram Moolenaar" Lower Priority Comments: after some vim commands... {{{2 302071d4279SBram Moolenaar" ======================= 303071d4279SBram Moolenaarsyn match vimComment excludenl +\s"[^\-:.%#=*].*$+lc=1 contains=@vimCommentGroup,vimCommentString 304071d4279SBram Moolenaarsyn match vimComment +\<endif\s\+".*$+lc=5 contains=@vimCommentGroup,vimCommentString 305071d4279SBram Moolenaarsyn match vimComment +\<else\s\+".*$+lc=4 contains=@vimCommentGroup,vimCommentString 3064770d09aSBram Moolenaarsyn region vimCommentString contained oneline start='\S\s\+"'ms=e end='"' 3072c7f8c57SBram Moolenaar" Vim9 comments - TODO: might be highlighted while they don't work 308acc22406SBram Moolenaarsyn match vim9Comment excludenl +\s#[^{].*$+lc=1 contains=@vimCommentGroup,vimCommentString 309acc22406SBram Moolenaarsyn match vim9Comment +\<endif\s\+#[^{].*$+lc=5 contains=@vimCommentGroup,vimCommentString 310acc22406SBram Moolenaarsyn match vim9Comment +\<else\s\+#[^{].*$+lc=4 contains=@vimCommentGroup,vimCommentString 3112c7f8c57SBram Moolenaar" Vim9 comment inside expression 312388a5d4fSBram Moolenaarsyn match vim9Comment +\s\zs#[^{].*$+ms=s+1 contains=@vimCommentGroup,vimCommentString 313d58a3bf7SBram Moolenaarsyn match vim9Comment +^\s*#[^{].*$+ contains=@vimCommentGroup,vimCommentString 314d58a3bf7SBram Moolenaarsyn match vim9Comment +^\s*#$+ contains=@vimCommentGroup,vimCommentString 315071d4279SBram Moolenaar 316cfbc5ee4SBram Moolenaar" Environment Variables: {{{2 317071d4279SBram Moolenaar" ===================== 318071d4279SBram Moolenaarsyn match vimEnvvar "\$\I\i*" 319071d4279SBram Moolenaarsyn match vimEnvvar "\${\I\i*}" 320071d4279SBram Moolenaar 321cfbc5ee4SBram Moolenaar" In-String Specials: {{{2 322071d4279SBram Moolenaar" Try to catch strings, if nothing else matches (therefore it must precede the others!) 323071d4279SBram Moolenaar" vimEscapeBrace handles ["] []"] (ie. "s don't terminate string inside []) 324d68071d8SBram Moolenaarsyn region vimEscapeBrace oneline contained transparent start="[^\\]\(\\\\\)*\[\zs\^\=\]\=" skip="\\\\\|\\\]" end="]"me=e-1 325071d4279SBram Moolenaarsyn match vimPatSepErr contained "\\)" 326071d4279SBram Moolenaarsyn match vimPatSep contained "\\|" 327b730f0c7SBram Moolenaarsyn region vimPatSepZone oneline contained matchgroup=vimPatSepZ start="\\%\=\ze(" skip="\\\\" end="\\)\|[^\\]['"]" contains=@vimStringGroup 328383f9bc3SBram Moolenaarsyn region vimPatRegion contained transparent matchgroup=vimPatSepR start="\\[z%]\=(" end="\\)" contains=@vimSubstList oneline 329071d4279SBram Moolenaarsyn match vimNotPatSep contained "\\\\" 3309964e468SBram Moolenaarsyn cluster vimStringGroup contains=vimEscapeBrace,vimPatSep,vimNotPatSep,vimPatSepErr,vimPatSepZone,@Spell 331d2855f54SBram Moolenaarsyn region vimString oneline keepend start=+[^a-zA-Z>!\\@]"+lc=1 skip=+\\\\\|\\"+ matchgroup=vimStringEnd end=+"+ contains=@vimStringGroup 332b0d45e7fSBram Moolenaarsyn region vimString oneline keepend start=+[^a-zA-Z>!\\@]'+lc=1 end=+'+ 333071d4279SBram Moolenaarsyn region vimString oneline start=+=!+lc=1 skip=+\\\\\|\\!+ end=+!+ contains=@vimStringGroup 334071d4279SBram Moolenaarsyn region vimString oneline start="=+"lc=1 skip="\\\\\|\\+" end="+" contains=@vimStringGroup 335acc22406SBram Moolenaar"syn region vimString oneline start="\s/\s*\A"lc=1 skip="\\\\\|\\+" end="/" contains=@vimStringGroup " see tst45.vim 336071d4279SBram Moolenaarsyn match vimString contained +"[^"]*\\$+ skipnl nextgroup=vimStringCont 337071d4279SBram Moolenaarsyn match vimStringCont contained +\(\\\\\|.\)\{-}[^\\]"+ 338071d4279SBram Moolenaar 339cfbc5ee4SBram Moolenaar" Substitutions: {{{2 340071d4279SBram Moolenaar" ============= 341071d4279SBram Moolenaarsyn cluster vimSubstList contains=vimPatSep,vimPatRegion,vimPatSepErr,vimSubstTwoBS,vimSubstRange,vimNotation 342071d4279SBram Moolenaarsyn cluster vimSubstRepList contains=vimSubstSubstr,vimSubstTwoBS,vimNotation 343071d4279SBram Moolenaarsyn cluster vimSubstList add=vimCollection 34491c4937bSBram Moolenaarsyn match vimSubst "\(:\+\s*\|^\s*\||\s*\)\<\%(\<s\%[ubstitute]\>\|\<sm\%[agic]\>\|\<sno\%[magic]\>\)[:#[:alpha:]]\@!" nextgroup=vimSubstPat 3451ff14ba2SBram Moolenaar"syn match vimSubst "\%(^\|[^\\]\)\<s\%[ubstitute]\>[:#[:alpha:]]\@!" nextgroup=vimSubstPat contained 3461ff14ba2SBram Moolenaarsyn match vimSubst "\%(^\|[^\\\"']\)\<s\%[ubstitute]\>[:#[:alpha:]\"']\@!" nextgroup=vimSubstPat contained 34791c4937bSBram Moolenaarsyn match vimSubst "/\zs\<s\%[ubstitute]\>\ze/" nextgroup=vimSubstPat 34891c4937bSBram Moolenaarsyn match vimSubst "\(:\+\s*\|^\s*\)s\ze#.\{-}#.\{-}#" nextgroup=vimSubstPat 34991c4937bSBram Moolenaarsyn match vimSubst1 contained "\<s\%[ubstitute]\>" nextgroup=vimSubstPat 350d2855f54SBram Moolenaarsyn match vimSubst2 contained "s\%[ubstitute]\>" nextgroup=vimSubstPat 351071d4279SBram 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 352071d4279SBram Moolenaarsyn region vimSubstRep4 contained matchgroup=vimSubstDelim start="\z(.\)" skip="\\\\\|\\\z1" end="\z1" matchgroup=vimNotation end="<[cC][rR]>" contains=@vimSubstRepList nextgroup=vimSubstFlagErr oneline 353071d4279SBram Moolenaarsyn region vimCollection contained transparent start="\\\@<!\[" skip="\\\[" end="\]" contains=vimCollClass 354071d4279SBram Moolenaarsyn match vimCollClassErr contained "\[:.\{-\}:\]" 35551ad4eaaSBram Moolenaarsyn match vimCollClass contained transparent "\%#=1\[:\(alnum\|alpha\|blank\|cntrl\|digit\|graph\|lower\|print\|punct\|space\|upper\|xdigit\|return\|tab\|escape\|backspace\):\]" 356071d4279SBram Moolenaarsyn match vimSubstSubstr contained "\\z\=\d" 357071d4279SBram Moolenaarsyn match vimSubstTwoBS contained "\\\\" 358a5792f58SBram Moolenaarsyn match vimSubstFlagErr contained "[^< \t\r|]\+" contains=vimSubstFlags 359acc22406SBram Moolenaarsyn match vimSubstFlags contained "[&cegiIlnpr#]\+" 360071d4279SBram Moolenaar 361cfbc5ee4SBram Moolenaar" 'String': {{{2 3628b6144bdSBram Moolenaarsyn match vimString "[^(,]'[^']\{-}\zs'" 363071d4279SBram Moolenaar 364cfbc5ee4SBram Moolenaar" Marks, Registers, Addresses, Filters: {{{2 3656c1e1570SBram Moolenaarsyn match vimMark "'[a-zA-Z0-9]\ze[-+,!]" nextgroup=vimFilter,vimMarkNumber,vimSubst 3666c1e1570SBram Moolenaarsyn match vimMark "'[<>]\ze[-+,!]" nextgroup=vimFilter,vimMarkNumber,vimSubst 3676c1e1570SBram Moolenaarsyn match vimMark ",\zs'[<>]\ze" nextgroup=vimFilter,vimMarkNumber,vimSubst 3686c1e1570SBram Moolenaarsyn match vimMark "[!,:]\zs'[a-zA-Z0-9]" nextgroup=vimFilter,vimMarkNumber,vimSubst 3696c1e1570SBram Moolenaarsyn match vimMark "\<norm\%[al]\s\zs'[a-zA-Z0-9]" nextgroup=vimFilter,vimMarkNumber,vimSubst 370d2855f54SBram Moolenaarsyn match vimMarkNumber "[-+]\d\+" contained contains=vimOper nextgroup=vimSubst2 371071d4279SBram Moolenaarsyn match vimPlainMark contained "'[a-zA-Z0-9]" 3726c1e1570SBram Moolenaarsyn match vimRange "[`'][a-zA-Z0-9],[`'][a-zA-Z0-9]" contains=vimMark skipwhite nextgroup=vimFilter 373071d4279SBram Moolenaar 374b4ff518dSBram Moolenaarsyn match vimRegister '[^,;[{: \t]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":0-9]' 3755b8d8fdbSBram Moolenaarsyn match vimRegister '\<norm\s\+\zs"[a-zA-Z0-9]' 3765b8d8fdbSBram Moolenaarsyn match vimRegister '\<normal\s\+\zs"[a-zA-Z0-9]' 377cfbc5ee4SBram Moolenaarsyn match vimRegister '@"' 378071d4279SBram Moolenaarsyn match vimPlainRegister contained '"[a-zA-Z0-9\-:.%#*+=]' 379071d4279SBram Moolenaar 3805b8d8fdbSBram Moolenaarsyn match vimAddress ",\zs[.$]" skipwhite nextgroup=vimSubst1 3815b8d8fdbSBram Moolenaarsyn match vimAddress "%\ze\a" skipwhite nextgroup=vimString,vimSubst1 382071d4279SBram Moolenaar 3836c1e1570SBram Moolenaarsyn match vimFilter "^!!\=[^"]\{-}\(|\|\ze\"\|$\)" contains=vimOper,vimSpecFile 3846c1e1570SBram Moolenaarsyn match vimFilter contained "!!\=[^"]\{-}\(|\|\ze\"\|$\)" contains=vimOper,vimSpecFile 385d58a3bf7SBram Moolenaarsyn match vimComFilter contained "|!!\=[^"]\{-}\(|\|\ze\"\|$\)" contains=vimOper,vimSpecFile 386071d4279SBram Moolenaar 3871ff14ba2SBram Moolenaar" Complex Repeats: (:h complex-repeat) {{{2 3881ff14ba2SBram Moolenaar" =============== 3896be7f873SBram Moolenaarsyn match vimCmplxRepeat '[^a-zA-Z_/\\()]q[0-9a-zA-Z"]\>'lc=1 3906be7f873SBram Moolenaarsyn match vimCmplxRepeat '@[0-9a-z".=@:]\ze\($\|[^a-zA-Z]\>\)' 391071d4279SBram Moolenaar 392cfbc5ee4SBram Moolenaar" Set command and associated set-options (vimOptions) with comment {{{2 3934d8f4761SBram Moolenaarsyn region vimSet matchgroup=vimCommand start="\<\%(setl\%[ocal]\|setg\%[lobal]\|se\%[t]\)\>" skip="\%(\\\\\)*\\.\n\@!" end="$" end="|" matchgroup=vimNotation end="<[cC][rR]>" keepend contains=vimSetEqual,vimOption,vimErrSetting,vimComment,vim9Comment,vimSetString,vimSetMod 394d2ea7cf1SBram Moolenaarsyn region vimSetEqual contained start="[=:]\|[-+^]=" skip="\\\\\|\\\s" end="[| \t]"me=e-1 end="$" contains=vimCtrlChar,vimSetSep,vimNotation,vimEnvvar 395071d4279SBram Moolenaarsyn region vimSetString contained start=+="+hs=s+1 skip=+\\\\\|\\"+ end=+"+ contains=vimCtrlChar 3964072ba57SBram Moolenaarsyn match vimSetSep contained "[,:]" 3975c73622aSBram Moolenaarsyn match vimSetMod contained "&vim\=\|[!&?<]\|all&" 398071d4279SBram Moolenaar 3991ff14ba2SBram Moolenaar" Let: {{{2 400071d4279SBram Moolenaar" === 4014072ba57SBram Moolenaarsyn keyword vimLet let unl[et] skipwhite nextgroup=vimVar,vimFuncVar,vimLetHereDoc 402113cb513SBram MoolenaarVimFoldh syn region vimLetHereDoc matchgroup=vimLetHereDocStart start='=<<\s\+\%(trim\>\)\=\s*\z(\L\S*\)' matchgroup=vimLetHereDocStop end='^\s*\z1\s*$' 403071d4279SBram Moolenaar 4041ff14ba2SBram Moolenaar" Abbreviations: {{{2 405e37d50a5SBram Moolenaar" ============= 406e37d50a5SBram Moolenaarsyn keyword vimAbb ab[breviate] ca[bbrev] inorea[bbrev] cnorea[bbrev] norea[bbrev] ia[bbrev] skipwhite nextgroup=vimMapMod,vimMapLhs 407e37d50a5SBram Moolenaar 4081ff14ba2SBram Moolenaar" Autocmd: {{{2 409071d4279SBram Moolenaar" ======= 410071d4279SBram Moolenaarsyn match vimAutoEventList contained "\(!\s\+\)\=\(\a\+,\)*\a\+" contains=vimAutoEvent nextgroup=vimAutoCmdSpace 411071d4279SBram Moolenaarsyn match vimAutoCmdSpace contained "\s\+" nextgroup=vimAutoCmdSfxList 412d58a3bf7SBram Moolenaarsyn match vimAutoCmdSfxList contained "\S*" skipwhite nextgroup=vimAutoCmdMod 413071d4279SBram Moolenaarsyn keyword vimAutoCmd au[tocmd] do[autocmd] doautoa[ll] skipwhite nextgroup=vimAutoEventList 414d58a3bf7SBram Moolenaarsyn match vimAutoCmdMod "\(++\)\=\(once\|nested\)" 415071d4279SBram Moolenaar 4161ff14ba2SBram Moolenaar" Echo And Execute: -- prefer strings! {{{2 417071d4279SBram Moolenaar" ================ 4185c73622aSBram Moolenaarsyn region vimEcho oneline excludenl matchgroup=vimCommand start="\<ec\%[ho]\>" skip="\(\\\\\)*\\|" end="$\||" contains=vimFunc,vimFuncVar,vimString,vimVar 4195c73622aSBram Moolenaarsyn region vimExecute oneline excludenl matchgroup=vimCommand start="\<exe\%[cute]\>" skip="\(\\\\\)*\\|" end="$\||\|<[cC][rR]>" contains=vimFuncVar,vimIsCommand,vimOper,vimNotation,vimOperParen,vimString,vimVar 420071d4279SBram Moolenaarsyn match vimEchoHL "echohl\=" skipwhite nextgroup=vimGroup,vimHLGroup,vimEchoHLNone 421071d4279SBram Moolenaarsyn case ignore 422071d4279SBram Moolenaarsyn keyword vimEchoHLNone none 423071d4279SBram Moolenaarsyn case match 424071d4279SBram Moolenaar 4251ff14ba2SBram Moolenaar" Maps: {{{2 426071d4279SBram Moolenaar" ==== 4273577c6faSBram Moolenaarsyn match vimMap "\<map\>!\=\ze\s*[^(]" skipwhite nextgroup=vimMapMod,vimMapLhs 4284d8f4761SBram 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] tno[remap] tm[ap] vm[ap] vmapc[lear] vn[oremap] xm[ap] xn[oremap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs 42981af9250SBram Moolenaarsyn keyword vimMap mapc[lear] smapc[lear] 43085850f3aSBram Moolenaarsyn keyword vimUnmap cu[nmap] iu[nmap] lu[nmap] nun[map] ou[nmap] sunm[ap] tunma[p] unm[ap] unm[ap] vu[nmap] xu[nmap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs 431b8a7b560SBram Moolenaarsyn match vimMapLhs contained "\S\+" contains=vimNotation,vimCtrlChar skipwhite nextgroup=vimMapRhs 432b8a7b560SBram Moolenaarsyn match vimMapBang contained "!" skipwhite nextgroup=vimMapMod,vimMapLhs 43351ad4eaaSBram Moolenaarsyn match vimMapMod contained "\%#=1\c<\(buffer\|expr\|\(local\)\=leader\|nowait\|plug\|script\|sid\|unique\|silent\)\+>" contains=vimMapModKey,vimMapModErr skipwhite nextgroup=vimMapMod,vimMapLhs 434b8a7b560SBram Moolenaarsyn match vimMapRhs contained ".*" contains=vimNotation,vimCtrlChar skipnl nextgroup=vimMapRhsExtend 435b4ff518dSBram Moolenaarsyn match vimMapRhsExtend contained "^\s*\\.*$" contains=vimContinue 436071d4279SBram Moolenaarsyn case ignore 437b4ff518dSBram Moolenaarsyn keyword vimMapModKey contained buffer expr leader localleader nowait plug script sid silent unique 438071d4279SBram Moolenaarsyn case match 439071d4279SBram Moolenaar 4401ff14ba2SBram Moolenaar" Menus: {{{2 441071d4279SBram Moolenaar" ===== 442071d4279SBram Moolenaarsyn cluster vimMenuList contains=vimMenuBang,vimMenuPriority,vimMenuName,vimMenuMod 443b730f0c7SBram 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 444071d4279SBram Moolenaarsyn match vimMenuName "[^ \t\\<]\+" contained nextgroup=vimMenuNameMore,vimMenuMap 445071d4279SBram Moolenaarsyn match vimMenuPriority "\d\+\(\.\d\+\)*" contained skipwhite nextgroup=vimMenuName 446071d4279SBram Moolenaarsyn match vimMenuNameMore "\c\\\s\|<tab>\|\\\." contained nextgroup=vimMenuName,vimMenuNameMore contains=vimNotation 447071d4279SBram Moolenaarsyn match vimMenuMod contained "\c<\(script\|silent\)\+>" skipwhite contains=vimMapModKey,vimMapModErr nextgroup=@vimMenuList 448071d4279SBram Moolenaarsyn match vimMenuMap "\s" contained skipwhite nextgroup=vimMenuRhs 4492c7f8c57SBram Moolenaarsyn match vimMenuRhs ".*$" contained contains=vimString,vimComment,vim9Comment,vimIsCommand 450071d4279SBram Moolenaarsyn match vimMenuBang "!" contained skipwhite nextgroup=@vimMenuList 451071d4279SBram Moolenaar 4521ff14ba2SBram Moolenaar" Angle-Bracket Notation: (tnx to Michael Geddes) {{{2 453071d4279SBram Moolenaar" ====================== 454071d4279SBram Moolenaarsyn case ignore 4554072ba57SBram Moolenaarsyn match vimNotation "\%#=1\(\\\|<lt>\)\=<\([scamd]-\)\{0,4}x\=\(f\d\{1,2}\|[^ \t:]\|cmd\|cr\|lf\|linefeed\|return\|k\=del\%[ete]\|bs\|backspace\|tab\|esc\|right\|left\|help\|undo\|insert\|ins\|mouse\|k\=home\|k\=end\|kplus\|kminus\|kdivide\|kmultiply\|kenter\|kpoint\|space\|k\=\(page\)\=\(\|down\|up\|k\d\>\)\)>" contains=vimBracket 45651ad4eaaSBram Moolenaarsyn match vimNotation "\%#=1\(\\\|<lt>\)\=<\([scam2-4]-\)\{0,4}\(right\|left\|middle\)\(mouse\)\=\(drag\|release\)\=>" contains=vimBracket 45751ad4eaaSBram Moolenaarsyn match vimNotation "\%#=1\(\\\|<lt>\)\=<\(bslash\|plug\|sid\|space\|bar\|nop\|nul\|lt\)>" contains=vimBracket 458071d4279SBram Moolenaarsyn match vimNotation '\(\\\|<lt>\)\=<C-R>[0-9a-z"%#:.\-=]'he=e-1 contains=vimBracket 45951ad4eaaSBram Moolenaarsyn match vimNotation '\%#=1\(\\\|<lt>\)\=<\%(q-\)\=\(line[12]\|count\|bang\|reg\|args\|mods\|f-args\|f-mods\|lt\)>' contains=vimBracket 46051ad4eaaSBram Moolenaarsyn match vimNotation "\%#=1\(\\\|<lt>\)\=<\([cas]file\|abuf\|amatch\|cword\|cWORD\|client\)>" contains=vimBracket 461071d4279SBram Moolenaarsyn match vimBracket contained "[\\<>]" 462071d4279SBram Moolenaarsyn case match 463071d4279SBram Moolenaar 4641ff14ba2SBram Moolenaar" User Function Highlighting: {{{2 4653577c6faSBram Moolenaar" (following Gautam Iyer's suggestion) 466071d4279SBram Moolenaar" ========================== 46751ad4eaaSBram Moolenaarsyn match vimFunc "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%(\w\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*(" contains=vimFuncName,vimUserFunc,vimExecute 46851ad4eaaSBram Moolenaarsyn match vimUserFunc contained "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%(\w\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>" contains=vimNotation 469071d4279SBram Moolenaar 4702547aa93SBram Moolenaar" User Command Highlighting: {{{2 471d2ea7cf1SBram Moolenaar"syn match vimUsrCmd '^\s*\zs\u\w*.*$' 472d2ea7cf1SBram Moolenaarsyn match vimUsrCmd '^\s*\zs\u\%(\w*\)\@>\%([(#[]\|\s\+\%([-+*/%]\=\|\.\.\)=\)\@!' 4732547aa93SBram Moolenaar 4743577c6faSBram Moolenaar" Errors And Warnings: {{{2 4753577c6faSBram Moolenaar" ==================== 4766be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimfunctionerror") 4775c73622aSBram Moolenaar syn match vimFunctionError "\s\zs[a-z0-9]\i\{-}\ze\s*(" contained contains=vimFuncKey,vimFuncBlank 4786c1e1570SBram Moolenaar syn match vimFunctionError "\s\zs\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\d\i\{-}\ze\s*(" contained contains=vimFuncKey,vimFuncBlank 4793577c6faSBram Moolenaar syn match vimElseIfErr "\<else\s\+if\>" 4803577c6faSBram Moolenaar syn match vimBufnrWarn /\<bufnr\s*(\s*["']\.['"]\s*)/ 4813577c6faSBram Moolenaarendif 4823577c6faSBram Moolenaar 4836c1e1570SBram Moolenaarsyn match vimNotFunc "\<if\>\|\<el\%[seif]\>\|\<return\>\|\<while\>" skipwhite nextgroup=vimOper,vimOperParen,vimVar,vimFunc,vimNotation 4846c1e1570SBram Moolenaar 4851ff14ba2SBram Moolenaar" Norm: {{{2 48605159a0cSBram Moolenaar" ==== 48705159a0cSBram Moolenaarsyn match vimNorm "\<norm\%[al]!\=" skipwhite nextgroup=vimNormCmds 48805159a0cSBram Moolenaarsyn match vimNormCmds contained ".*$" 48905159a0cSBram Moolenaar 4901ff14ba2SBram Moolenaar" Syntax: {{{2 491071d4279SBram Moolenaar"======= 492071d4279SBram Moolenaarsyn match vimGroupList contained "@\=[^ \t,]*" contains=vimGroupSpecial,vimPatSep 493071d4279SBram Moolenaarsyn match vimGroupList contained "@\=[^ \t,]*," nextgroup=vimGroupList contains=vimGroupSpecial,vimPatSep 4945c73622aSBram Moolenaarsyn keyword vimGroupSpecial contained ALL ALLBUT CONTAINED TOP 4956be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsynerror") 496071d4279SBram Moolenaar syn match vimSynError contained "\i\+" 497071d4279SBram Moolenaar syn match vimSynError contained "\i\+=" nextgroup=vimGroupList 498cfbc5ee4SBram Moolenaarendif 499071d4279SBram Moolenaarsyn match vimSynContains contained "\<contain\(s\|edin\)=" nextgroup=vimGroupList 500071d4279SBram Moolenaarsyn match vimSynKeyContainedin contained "\<containedin=" nextgroup=vimGroupList 501071d4279SBram Moolenaarsyn match vimSynNextgroup contained "nextgroup=" nextgroup=vimGroupList 502071d4279SBram Moolenaar 5032c7f8c57SBram Moolenaarsyn match vimSyntax "\<sy\%[ntax]\>" contains=vimCommand skipwhite nextgroup=vimSynType,vimComment,vim9Comment 5042c7f8c57SBram Moolenaarsyn match vimAuSyntax contained "\s+sy\%[ntax]" contains=vimCommand skipwhite nextgroup=vimSynType,vimComment,vim9Comment 505d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSyntax 506071d4279SBram Moolenaar 507cfbc5ee4SBram Moolenaar" Syntax: case {{{2 508071d4279SBram Moolenaarsyn keyword vimSynType contained case skipwhite nextgroup=vimSynCase,vimSynCaseError 5096be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsyncaseerror") 510071d4279SBram Moolenaar syn match vimSynCaseError contained "\i\+" 511cfbc5ee4SBram Moolenaarendif 512071d4279SBram Moolenaarsyn keyword vimSynCase contained ignore match 513071d4279SBram Moolenaar 514cfbc5ee4SBram Moolenaar" Syntax: clear {{{2 515071d4279SBram Moolenaarsyn keyword vimSynType contained clear skipwhite nextgroup=vimGroupList 516071d4279SBram Moolenaar 517cfbc5ee4SBram Moolenaar" Syntax: cluster {{{2 518071d4279SBram Moolenaarsyn keyword vimSynType contained cluster skipwhite nextgroup=vimClusterName 519a0f849eeSBram Moolenaarsyn region vimClusterName contained matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" matchgroup=vimSep end="$\||" contains=vimGroupAdd,vimGroupRem,vimSynContains,vimSynError 520071d4279SBram Moolenaarsyn match vimGroupAdd contained "add=" nextgroup=vimGroupList 521071d4279SBram Moolenaarsyn match vimGroupRem contained "remove=" nextgroup=vimGroupList 522d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType,vimGroupAdd,vimGroupRem 523071d4279SBram Moolenaar 52413d5aeefSBram Moolenaar" Syntax: iskeyword {{{2 52513d5aeefSBram Moolenaarsyn keyword vimSynType contained iskeyword skipwhite nextgroup=vimIskList 52613d5aeefSBram Moolenaarsyn match vimIskList contained '\S\+' contains=vimIskSep 52713d5aeefSBram Moolenaarsyn match vimIskSep contained ',' 52813d5aeefSBram Moolenaar 529cfbc5ee4SBram Moolenaar" Syntax: include {{{2 530071d4279SBram Moolenaarsyn keyword vimSynType contained include skipwhite nextgroup=vimGroupList 531d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType 532071d4279SBram Moolenaar 533cfbc5ee4SBram Moolenaar" Syntax: keyword {{{2 534071d4279SBram Moolenaarsyn cluster vimSynKeyGroup contains=vimSynNextgroup,vimSynKeyOpt,vimSynKeyContainedin 535071d4279SBram Moolenaarsyn keyword vimSynType contained keyword skipwhite nextgroup=vimSynKeyRegion 536a0f849eeSBram Moolenaarsyn region vimSynKeyRegion contained oneline keepend matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" matchgroup=vimSep end="|\|$" contains=@vimSynKeyGroup 53751ad4eaaSBram Moolenaarsyn match vimSynKeyOpt contained "\%#=1\<\(conceal\|contained\|transparent\|skipempty\|skipwhite\|skipnl\)\>" 538d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType 539071d4279SBram Moolenaar 540cfbc5ee4SBram Moolenaar" Syntax: match {{{2 5412c7f8c57SBram Moolenaarsyn cluster vimSynMtchGroup contains=vimMtchComment,vimSynContains,vimSynError,vimSynMtchOpt,vimSynNextgroup,vimSynRegPat,vimNotation,vim9Comment 542071d4279SBram Moolenaarsyn keyword vimSynType contained match skipwhite nextgroup=vimSynMatchRegion 543a0f849eeSBram Moolenaarsyn region vimSynMatchRegion contained keepend matchgroup=vimGroupName start="\h\w*" matchgroup=vimSep end="|\|$" contains=@vimSynMtchGroup 54451ad4eaaSBram Moolenaarsyn match vimSynMtchOpt contained "\%#=1\<\(conceal\|transparent\|contained\|excludenl\|keepend\|skipempty\|skipwhite\|display\|extend\|skipnl\|fold\)\>" 545071d4279SBram Moolenaarif has("conceal") 54683d1b190SBram Moolenaar syn match vimSynMtchOpt contained "\<cchar=" nextgroup=vimSynMtchCchar 5475c73622aSBram Moolenaar syn match vimSynMtchCchar contained "\S" 548071d4279SBram Moolenaarendif 549d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynMtchGroup 550071d4279SBram Moolenaar 551cfbc5ee4SBram Moolenaar" Syntax: off and on {{{2 552071d4279SBram Moolenaarsyn keyword vimSynType contained enable list manual off on reset 553071d4279SBram Moolenaar 554cfbc5ee4SBram Moolenaar" Syntax: region {{{2 555071d4279SBram Moolenaarsyn cluster vimSynRegPatGroup contains=vimPatSep,vimNotPatSep,vimSynPatRange,vimSynNotPatRange,vimSubstSubstr,vimPatRegion,vimPatSepErr,vimNotation 556071d4279SBram Moolenaarsyn cluster vimSynRegGroup contains=vimSynContains,vimSynNextgroup,vimSynRegOpt,vimSynReg,vimSynMtchGrp 557071d4279SBram Moolenaarsyn keyword vimSynType contained region skipwhite nextgroup=vimSynRegion 558a0f849eeSBram Moolenaarsyn region vimSynRegion contained keepend matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" end="|\|$" contains=@vimSynRegGroup 55951ad4eaaSBram Moolenaarsyn match vimSynRegOpt contained "\%#=1\<\(conceal\(ends\)\=\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|keepend\|oneline\|extend\|skipnl\|fold\)\>" 560071d4279SBram Moolenaarsyn match vimSynReg contained "\(start\|skip\|end\)="he=e-1 nextgroup=vimSynRegPat 561071d4279SBram Moolenaarsyn match vimSynMtchGrp contained "matchgroup=" nextgroup=vimGroup,vimHLGroup 562071d4279SBram Moolenaarsyn region vimSynRegPat contained extend start="\z([-`~!@#$%^&*_=+;:'",./?]\)" skip="\\\\\|\\\z1" end="\z1" contains=@vimSynRegPatGroup skipwhite nextgroup=vimSynPatMod,vimSynReg 56351ad4eaaSBram Moolenaarsyn match vimSynPatMod contained "\%#=1\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\=" 56451ad4eaaSBram Moolenaarsyn match vimSynPatMod contained "\%#=1\(hs\|ms\|me\|hs\|he\|rs\|re\)=[se]\([-+]\d\+\)\=," nextgroup=vimSynPatMod 565071d4279SBram Moolenaarsyn match vimSynPatMod contained "lc=\d\+" 566071d4279SBram Moolenaarsyn match vimSynPatMod contained "lc=\d\+," nextgroup=vimSynPatMod 567071d4279SBram Moolenaarsyn region vimSynPatRange contained start="\[" skip="\\\\\|\\]" end="]" 568071d4279SBram Moolenaarsyn match vimSynNotPatRange contained "\\\\\|\\\[" 569071d4279SBram Moolenaarsyn match vimMtchComment contained '"[^"]\+$' 570d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimSynType 571071d4279SBram Moolenaar 572cfbc5ee4SBram Moolenaar" Syntax: sync {{{2 573071d4279SBram Moolenaar" ============ 574df177f67SBram Moolenaarsyn keyword vimSynType contained sync skipwhite nextgroup=vimSyncC,vimSyncLines,vimSyncMatch,vimSyncError,vimSyncLinebreak,vimSyncLinecont,vimSyncRegion 5756be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimsyncerror") 576071d4279SBram Moolenaar syn match vimSyncError contained "\i\+" 577cfbc5ee4SBram Moolenaarendif 578071d4279SBram Moolenaarsyn keyword vimSyncC contained ccomment clear fromstart 579071d4279SBram Moolenaarsyn keyword vimSyncMatch contained match skipwhite nextgroup=vimSyncGroupName 580071d4279SBram Moolenaarsyn keyword vimSyncRegion contained region skipwhite nextgroup=vimSynReg 581df177f67SBram Moolenaarsyn match vimSyncLinebreak contained "\<linebreaks=" skipwhite nextgroup=vimNumber 582071d4279SBram Moolenaarsyn keyword vimSyncLinecont contained linecont skipwhite nextgroup=vimSynRegPat 583071d4279SBram Moolenaarsyn match vimSyncLines contained "\(min\|max\)\=lines=" nextgroup=vimNumber 584a0f849eeSBram Moolenaarsyn match vimSyncGroupName contained "\h\w*" skipwhite nextgroup=vimSyncKey 585071d4279SBram Moolenaarsyn match vimSyncKey contained "\<groupthere\|grouphere\>" skipwhite nextgroup=vimSyncGroup 586a0f849eeSBram Moolenaarsyn match vimSyncGroup contained "\h\w*" skipwhite nextgroup=vimSynRegPat,vimSyncNone 587071d4279SBram Moolenaarsyn keyword vimSyncNone contained NONE 588071d4279SBram Moolenaar 5891ff14ba2SBram Moolenaar" Additional IsCommand: here by reasons of precedence {{{2 590071d4279SBram Moolenaar" ==================== 591071d4279SBram Moolenaarsyn match vimIsCommand "<Bar>\s*\a\+" transparent contains=vimCommand,vimNotation 592071d4279SBram Moolenaar 5931ff14ba2SBram Moolenaar" Highlighting: {{{2 594071d4279SBram Moolenaar" ============ 5952c7f8c57SBram Moolenaarsyn cluster vimHighlightCluster contains=vimHiLink,vimHiClear,vimHiKeyList,vimComment,vim9Comment 5966be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_novimhictermerror") 59751ad4eaaSBram Moolenaar syn match vimHiCtermError contained "\D\i*" 5986be7f873SBram Moolenaarendif 599071d4279SBram Moolenaarsyn match vimHighlight "\<hi\%[ghlight]\>" skipwhite nextgroup=vimHiBang,@vimHighlightCluster 600071d4279SBram Moolenaarsyn match vimHiBang contained "!" skipwhite nextgroup=@vimHighlightCluster 601071d4279SBram Moolenaar 602071d4279SBram Moolenaarsyn match vimHiGroup contained "\i\+" 603071d4279SBram Moolenaarsyn case ignore 604f0b03c4eSBram Moolenaarsyn keyword vimHiAttrib contained none bold inverse italic nocombine reverse standout strikethrough underline undercurl 605071d4279SBram Moolenaarsyn keyword vimFgBgAttrib contained none bg background fg foreground 606071d4279SBram Moolenaarsyn case match 607071d4279SBram Moolenaarsyn match vimHiAttribList contained "\i\+" contains=vimHiAttrib 608071d4279SBram Moolenaarsyn match vimHiAttribList contained "\i\+,"he=e-1 contains=vimHiAttrib nextgroup=vimHiAttribList 609071d4279SBram Moolenaarsyn case ignore 610d2ea7cf1SBram Moolenaarsyn keyword vimHiCtermColor contained black blue brown cyan darkblue darkcyan darkgray darkgreen darkgrey darkmagenta darkred darkyellow gray green grey grey40 grey50 grey90 lightblue lightcyan lightgray lightgreen lightgrey lightmagenta lightred lightyellow magenta red seagreen white yellow 6116be7f873SBram Moolenaarsyn match vimHiCtermColor contained "\<color\d\{1,3}\>" 612071d4279SBram Moolenaar 613071d4279SBram Moolenaarsyn case match 614071d4279SBram Moolenaarsyn match vimHiFontname contained "[a-zA-Z\-*]\+" 615071d4279SBram Moolenaarsyn match vimHiGuiFontname contained "'[a-zA-Z\-* ]\+'" 616071d4279SBram Moolenaarsyn match vimHiGuiRgb contained "#\x\{6}" 617071d4279SBram Moolenaar 618cfbc5ee4SBram Moolenaar" Highlighting: hi group key=arg ... {{{2 6192547aa93SBram Moolenaarsyn cluster vimHiCluster contains=vimGroup,vimHiGroup,vimHiTerm,vimHiCTerm,vimHiStartStop,vimHiCtermFgBg,vimHiCtermul,vimHiGui,vimHiGuiFont,vimHiGuiFgBg,vimHiKeyError,vimNotation 620071d4279SBram Moolenaarsyn region vimHiKeyList contained oneline start="\i\+" skip="\\\\\|\\|" end="$\||" contains=@vimHiCluster 6216be7f873SBram Moolenaarif !exists("g:vimsyn_noerror") && !exists("g:vimsyn_vimhikeyerror") 622071d4279SBram Moolenaar syn match vimHiKeyError contained "\i\+="he=e-1 623cfbc5ee4SBram Moolenaarendif 624071d4279SBram Moolenaarsyn match vimHiTerm contained "\cterm="he=e-1 nextgroup=vimHiAttribList 625071d4279SBram Moolenaarsyn match vimHiStartStop contained "\c\(start\|stop\)="he=e-1 nextgroup=vimHiTermcap,vimOption 626071d4279SBram Moolenaarsyn match vimHiCTerm contained "\ccterm="he=e-1 nextgroup=vimHiAttribList 62783d1b190SBram Moolenaarsyn match vimHiCtermFgBg contained "\ccterm[fb]g="he=e-1 nextgroup=vimHiNmbr,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError 6282547aa93SBram Moolenaarsyn match vimHiCtermul contained "\cctermul="he=e-1 nextgroup=vimHiNmbr,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError 629071d4279SBram Moolenaarsyn match vimHiGui contained "\cgui="he=e-1 nextgroup=vimHiAttribList 630071d4279SBram Moolenaarsyn match vimHiGuiFont contained "\cfont="he=e-1 nextgroup=vimHiFontname 6314770d09aSBram Moolenaarsyn match vimHiGuiFgBg contained "\cgui\%([fb]g\|sp\)="he=e-1 nextgroup=vimHiGroup,vimHiGuiFontname,vimHiGuiRgb,vimFgBgAttrib 632071d4279SBram Moolenaarsyn match vimHiTermcap contained "\S\+" contains=vimNotation 63383d1b190SBram Moolenaarsyn match vimHiNmbr contained '\d\+' 634071d4279SBram Moolenaar 635cfbc5ee4SBram Moolenaar" Highlight: clear {{{2 636071d4279SBram Moolenaarsyn keyword vimHiClear contained clear nextgroup=vimHiGroup 637071d4279SBram Moolenaar 638cfbc5ee4SBram Moolenaar" Highlight: link {{{2 639d2855f54SBram Moolenaar" see tst24 (hi def vs hi) (Jul 06, 2018) 640d2855f54SBram Moolenaar"syn region vimHiLink contained oneline matchgroup=vimCommand start="\(\<hi\%[ghlight]\s\+\)\@<=\(\(def\%[ault]\s\+\)\=link\>\|\<def\>\)" end="$" contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation 641d2855f54SBram Moolenaarsyn region vimHiLink contained oneline matchgroup=vimCommand start="\(\<hi\%[ghlight]\s\+\)\@<=\(\(def\%[ault]\s\+\)\=link\>\|\<def\>\)" end="$" contains=@vimHiCluster 642d960d76dSBram Moolenaarsyn cluster vimFuncBodyList add=vimHiLink 643071d4279SBram Moolenaar 6441ff14ba2SBram Moolenaar" Control Characters: {{{2 645071d4279SBram Moolenaar" ================== 646071d4279SBram Moolenaarsyn match vimCtrlChar "[--]" 647071d4279SBram Moolenaar 648cfbc5ee4SBram Moolenaar" Beginners - Patterns that involve ^ {{{2 649071d4279SBram Moolenaar" ========= 650071d4279SBram Moolenaarsyn match vimLineComment +^[ \t:]*".*$+ contains=@vimCommentGroup,vimCommentString,vimCommentTitle 6514072ba57SBram Moolenaarsyn match vim9LineComment +^[ \t:]\+#.*$+ contains=@vimCommentGroup,vimCommentString,vimCommentTitle 652ff1d0d4cSBram Moolenaarsyn match vimCommentTitle '"\s*\%([sS]:\|\h\w*#\)\=\u\w*\(\s\+\u\w*\)*:'hs=s+1 contained contains=vimCommentTitleLeader,vimTodo,@vimCommentGroup 653071d4279SBram Moolenaarsyn match vimContinue "^\s*\\" 654071d4279SBram Moolenaarsyn region vimString start="^\s*\\\z(['"]\)" skip='\\\\\|\\\z1' end="\z1" oneline keepend contains=@vimStringGroup,vimContinue 655071d4279SBram Moolenaarsyn match vimCommentTitleLeader '"\s\+'ms=s+1 contained 656071d4279SBram Moolenaar 65718144c84SBram Moolenaar" Searches And Globals: {{{2 65818144c84SBram Moolenaar" ==================== 659e2f98b95SBram Moolenaarsyn match vimSearch '^\s*[/?].*' contains=vimSearchDelim 660e2f98b95SBram Moolenaarsyn match vimSearchDelim '^\s*\zs[/?]\|[/?]$' contained 6619da7ff70SBram Moolenaarsyn region vimGlobal matchgroup=Statement start='\<g\%[lobal]!\=/' skip='\\.' end='/' skipwhite nextgroup=vimSubst 6629da7ff70SBram Moolenaarsyn region vimGlobal matchgroup=Statement start='\<v\%[global]!\=/' skip='\\.' end='/' skipwhite nextgroup=vimSubst 663e2f98b95SBram Moolenaar 6641ff14ba2SBram Moolenaar" Embedded Scripts: {{{2 6651ff14ba2SBram Moolenaar" ================ 6661ff14ba2SBram Moolenaar" perl,ruby : Benoit Cerrina 6671ff14ba2SBram Moolenaar" python,tcl : Johannes Zellner 6681ff14ba2SBram Moolenaar" mzscheme, lua : Charles Campbell 669071d4279SBram Moolenaar 6703577c6faSBram Moolenaar" Allows users to specify the type of embedded script highlighting 6713577c6faSBram Moolenaar" they want: (perl/python/ruby/tcl support) 6723577c6faSBram Moolenaar" g:vimsyn_embed == 0 : don't embed any scripts 673f391327aSBram Moolenaar" g:vimsyn_embed =~# 'l' : embed lua (but only if vim supports it) 674f391327aSBram Moolenaar" g:vimsyn_embed =~# 'm' : embed mzscheme (but only if vim supports it) 675f391327aSBram Moolenaar" g:vimsyn_embed =~# 'p' : embed perl (but only if vim supports it) 676f391327aSBram Moolenaar" g:vimsyn_embed =~# 'P' : embed python (but only if vim supports it) 677f391327aSBram Moolenaar" g:vimsyn_embed =~# 'r' : embed ruby (but only if vim supports it) 678f391327aSBram Moolenaar" g:vimsyn_embed =~# 't' : embed tcl (but only if vim supports it) 6797cba6c06SBram Moolenaarif !exists("g:vimsyn_embed") 680a0f849eeSBram Moolenaar let g:vimsyn_embed= "lmpPr" 6817cba6c06SBram Moolenaarendif 682071d4279SBram Moolenaar 6834b22cdb0SBram Moolenaar" [-- lua --] {{{3 684adc2182cSBram Moolenaarlet s:luapath= fnameescape(expand("<sfile>:p:h")."/lua.vim") 6854b22cdb0SBram Moolenaarif !filereadable(s:luapath) 686a0f849eeSBram Moolenaar for s:luapath in split(globpath(&rtp,"syntax/lua.vim"),"\n") 687a0f849eeSBram Moolenaar if filereadable(fnameescape(s:luapath)) 688a0f849eeSBram Moolenaar let s:luapath= fnameescape(s:luapath) 6899da7ff70SBram Moolenaar break 6909da7ff70SBram Moolenaar endif 6919da7ff70SBram Moolenaar endfor 6924b22cdb0SBram Moolenaarendif 693f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'l' && has("lua")) && filereadable(s:luapath) 6944b22cdb0SBram Moolenaar unlet! b:current_syntax 69551ad4eaaSBram Moolenaar syn cluster vimFuncBodyList add=vimLuaRegion 6964b22cdb0SBram Moolenaar exe "syn include @vimLuaScript ".s:luapath 697a0f849eeSBram Moolenaar VimFoldl syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimLuaScript 698a0f849eeSBram Moolenaar VimFoldl syn region vimLuaRegion matchgroup=vimScriptDelim start=+lua\s*<<\s*$+ end=+\.$+ contains=@vimLuaScript 6994b22cdb0SBram Moolenaar syn cluster vimFuncBodyList add=vimLuaRegion 7004b22cdb0SBram Moolenaarelse 7014b22cdb0SBram Moolenaar syn region vimEmbedError start=+lua\s*<<\s*\z(.*\)$+ end=+^\z1$+ 7024b22cdb0SBram Moolenaar syn region vimEmbedError start=+lua\s*<<\s*$+ end=+\.$+ 7034b22cdb0SBram Moolenaarendif 7044b22cdb0SBram Moolenaarunlet s:luapath 7054b22cdb0SBram Moolenaar 706cfbc5ee4SBram Moolenaar" [-- perl --] {{{3 707adc2182cSBram Moolenaarlet s:perlpath= fnameescape(expand("<sfile>:p:h")."/perl.vim") 7085c73622aSBram Moolenaarif !filereadable(s:perlpath) 709a0f849eeSBram Moolenaar for s:perlpath in split(globpath(&rtp,"syntax/perl.vim"),"\n") 710a0f849eeSBram Moolenaar if filereadable(fnameescape(s:perlpath)) 711a0f849eeSBram Moolenaar let s:perlpath= fnameescape(s:perlpath) 7129da7ff70SBram Moolenaar break 7139da7ff70SBram Moolenaar endif 7149da7ff70SBram Moolenaar endfor 7155c73622aSBram Moolenaarendif 716f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'p' && has("perl")) && filereadable(s:perlpath) 717071d4279SBram Moolenaar unlet! b:current_syntax 71851ad4eaaSBram Moolenaar syn cluster vimFuncBodyList add=vimPerlRegion 7195c73622aSBram Moolenaar exe "syn include @vimPerlScript ".s:perlpath 72015142e27SBram Moolenaar VimFoldp syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*\z(\S*\)\ze\(\s*["#].*\)\=$+ end=+^\z1\ze\(\s*[#"].*\)\=$+ contains=@vimPerlScript 721a0f849eeSBram Moolenaar VimFoldp syn region vimPerlRegion matchgroup=vimScriptDelim start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ contains=@vimPerlScript 7225c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimPerlRegion 723c236c16dSBram Moolenaarelse 724c236c16dSBram Moolenaar syn region vimEmbedError start=+pe\%[rl]\s*<<\s*\z(.*\)$+ end=+^\z1$+ 725c236c16dSBram Moolenaar syn region vimEmbedError start=+pe\%[rl]\s*<<\s*$+ end=+\.$+ 7263577c6faSBram Moolenaarendif 7275c73622aSBram Moolenaarunlet s:perlpath 728071d4279SBram Moolenaar 729cfbc5ee4SBram Moolenaar" [-- ruby --] {{{3 730adc2182cSBram Moolenaarlet s:rubypath= fnameescape(expand("<sfile>:p:h")."/ruby.vim") 7315c73622aSBram Moolenaarif !filereadable(s:rubypath) 732a0f849eeSBram Moolenaar for s:rubypath in split(globpath(&rtp,"syntax/ruby.vim"),"\n") 733a0f849eeSBram Moolenaar if filereadable(fnameescape(s:rubypath)) 734a0f849eeSBram Moolenaar let s:rubypath= fnameescape(s:rubypath) 7359da7ff70SBram Moolenaar break 7369da7ff70SBram Moolenaar endif 7379da7ff70SBram Moolenaar endfor 7385c73622aSBram Moolenaarendif 739f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'r' && has("ruby")) && filereadable(s:rubypath) 74051ad4eaaSBram Moolenaar syn cluster vimFuncBodyList add=vimRubyRegion 741071d4279SBram Moolenaar unlet! b:current_syntax 7425c73622aSBram Moolenaar exe "syn include @vimRubyScript ".s:rubypath 74315142e27SBram Moolenaar VimFoldr syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*\z(\S*\)\ze\(\s*#.*\)\=$+ end=+^\z1\ze\(\s*".*\)\=$+ contains=@vimRubyScript 744071d4279SBram Moolenaar syn region vimRubyRegion matchgroup=vimScriptDelim start=+rub[y]\s*<<\s*$+ end=+\.$+ contains=@vimRubyScript 7455c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimRubyRegion 746c236c16dSBram Moolenaarelse 747c236c16dSBram Moolenaar syn region vimEmbedError start=+rub[y]\s*<<\s*\z(.*\)$+ end=+^\z1$+ 748c236c16dSBram Moolenaar syn region vimEmbedError start=+rub[y]\s*<<\s*$+ end=+\.$+ 749071d4279SBram Moolenaarendif 7505c73622aSBram Moolenaarunlet s:rubypath 751071d4279SBram Moolenaar 752cfbc5ee4SBram Moolenaar" [-- python --] {{{3 753adc2182cSBram Moolenaarlet s:pythonpath= fnameescape(expand("<sfile>:p:h")."/python.vim") 7545c73622aSBram Moolenaarif !filereadable(s:pythonpath) 755a0f849eeSBram Moolenaar for s:pythonpath in split(globpath(&rtp,"syntax/python.vim"),"\n") 756a0f849eeSBram Moolenaar if filereadable(fnameescape(s:pythonpath)) 757a0f849eeSBram Moolenaar let s:pythonpath= fnameescape(s:pythonpath) 7589da7ff70SBram Moolenaar break 7595c73622aSBram Moolenaar endif 7609da7ff70SBram Moolenaar endfor 7619da7ff70SBram Moolenaarendif 76251ad4eaaSBram Moolenaarif g:vimsyn_embed =~# 'P' && has("pythonx") && filereadable(s:pythonpath) 763071d4279SBram Moolenaar unlet! b:current_syntax 76451ad4eaaSBram Moolenaar syn cluster vimFuncBodyList add=vimPythonRegion 7655c73622aSBram Moolenaar exe "syn include @vimPythonScript ".s:pythonpath 7662c7f8c57SBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon][3x]\=\s*<<\s*\z(\S*\)\ze\(\s*#.*\)\=$+ end=+^\z1\ze\(\s*".*\)\=$+ contains=@vimPythonScript 7672c7f8c57SBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon][3x]\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript 76815142e27SBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+Py\%[thon]2or3\s*<<\s*\z(\S*\)\ze\(\s*#.*\)\=$+ end=+^\z1\ze\(\s*".*\)\=$+ contains=@vimPythonScript 769b4ff518dSBram Moolenaar VimFoldP syn region vimPythonRegion matchgroup=vimScriptDelim start=+Py\%[thon]2or3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript 7705c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimPythonRegion 771c236c16dSBram Moolenaarelse 772fa01c39dSBram Moolenaar syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ 773fa01c39dSBram Moolenaar syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ 7743577c6faSBram Moolenaarendif 7755c73622aSBram Moolenaarunlet s:pythonpath 776071d4279SBram Moolenaar 777cfbc5ee4SBram Moolenaar" [-- tcl --] {{{3 778a0f849eeSBram Moolenaarif has("win32") || has("win95") || has("win64") || has("win16") 779a0f849eeSBram Moolenaar " apparently has("tcl") has been hanging vim on some windows systems with cygwin 780a0f849eeSBram Moolenaar let s:trytcl= (&shell !~ '\<\%(bash\>\|4[nN][tT]\|\<zsh\)\>\%(\.exe\)\=$') 781a0f849eeSBram Moolenaarelse 782a0f849eeSBram Moolenaar let s:trytcl= 1 783a0f849eeSBram Moolenaarendif 784a6878375SBram Moolenaarif s:trytcl 785adc2182cSBram Moolenaar let s:tclpath= fnameescape(expand("<sfile>:p:h")."/tcl.vim") 7865c73622aSBram Moolenaar if !filereadable(s:tclpath) 787a0f849eeSBram Moolenaar for s:tclpath in split(globpath(&rtp,"syntax/tcl.vim"),"\n") 788a0f849eeSBram Moolenaar if filereadable(fnameescape(s:tclpath)) 789a0f849eeSBram Moolenaar let s:tclpath= fnameescape(s:tclpath) 7909da7ff70SBram Moolenaar break 7919da7ff70SBram Moolenaar endif 7929da7ff70SBram Moolenaar endfor 7935c73622aSBram Moolenaar endif 794f391327aSBram Moolenaar if (g:vimsyn_embed =~# 't' && has("tcl")) && filereadable(s:tclpath) 795071d4279SBram Moolenaar unlet! b:current_syntax 79651ad4eaaSBram Moolenaar syn cluster vimFuncBodyList add=vimTclRegion 7975c73622aSBram Moolenaar exe "syn include @vimTclScript ".s:tclpath 798a0f849eeSBram Moolenaar VimFoldt syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimTclScript 799a0f849eeSBram Moolenaar VimFoldt syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+ contains=@vimTclScript 8005c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimTclScript 801c236c16dSBram Moolenaar else 802c236c16dSBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ 803c236c16dSBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+ 8043577c6faSBram Moolenaar endif 8055c73622aSBram Moolenaar unlet s:tclpath 806a6878375SBram Moolenaarelse 807a6878375SBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ 808a6878375SBram Moolenaar syn region vimEmbedError start=+tc[l]\=\s*<<\s*$+ end=+\.$+ 809a6878375SBram Moolenaarendif 810a6878375SBram Moolenaarunlet s:trytcl 811071d4279SBram Moolenaar 8128299df96SBram Moolenaar" [-- mzscheme --] {{{3 813adc2182cSBram Moolenaarlet s:mzschemepath= fnameescape(expand("<sfile>:p:h")."/scheme.vim") 8145c73622aSBram Moolenaarif !filereadable(s:mzschemepath) 815a0f849eeSBram Moolenaar for s:mzschemepath in split(globpath(&rtp,"syntax/mzscheme.vim"),"\n") 816a0f849eeSBram Moolenaar if filereadable(fnameescape(s:mzschemepath)) 817a0f849eeSBram Moolenaar let s:mzschemepath= fnameescape(s:mzschemepath) 8189da7ff70SBram Moolenaar break 8199da7ff70SBram Moolenaar endif 8209da7ff70SBram Moolenaar endfor 8215c73622aSBram Moolenaarendif 822f391327aSBram Moolenaarif (g:vimsyn_embed =~# 'm' && has("mzscheme")) && filereadable(s:mzschemepath) 8238299df96SBram Moolenaar unlet! b:current_syntax 82403413f44SBram Moolenaar let s:iskKeep= &isk 82551ad4eaaSBram Moolenaar syn cluster vimFuncBodyList add=vimMzSchemeRegion 8265c73622aSBram Moolenaar exe "syn include @vimMzSchemeScript ".s:mzschemepath 82703413f44SBram Moolenaar let &isk= s:iskKeep 82803413f44SBram Moolenaar unlet s:iskKeep 829a0f849eeSBram Moolenaar VimFoldm syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimMzSchemeScript 830a0f849eeSBram Moolenaar VimFoldm syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ contains=@vimMzSchemeScript 8315c73622aSBram Moolenaar syn cluster vimFuncBodyList add=vimMzSchemeRegion 832c236c16dSBram Moolenaarelse 833c236c16dSBram Moolenaar syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ 834c236c16dSBram Moolenaar syn region vimEmbedError start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ 8353577c6faSBram Moolenaarendif 8365c73622aSBram Moolenaarunlet s:mzschemepath 8378299df96SBram Moolenaar 838cfbc5ee4SBram Moolenaar" Synchronize (speed) {{{2 839071d4279SBram Moolenaar"============ 8403577c6faSBram Moolenaarif exists("g:vimsyn_minlines") 8413577c6faSBram Moolenaar exe "syn sync minlines=".g:vimsyn_minlines 842071d4279SBram Moolenaarendif 84303413f44SBram Moolenaarexe "syn sync maxlines=".s:vimsyn_maxlines 844071d4279SBram Moolenaarsyn sync linecont "^\s\+\\" 845071d4279SBram Moolenaarsyn sync match vimAugroupSyncA groupthere NONE "\<aug\%[roup]\>\s\+[eE][nN][dD]" 846071d4279SBram Moolenaar 8475c73622aSBram Moolenaar" ==================== 848cfbc5ee4SBram Moolenaar" Highlighting Settings {{{2 849071d4279SBram Moolenaar" ==================== 850071d4279SBram Moolenaar 851f37506f6SBram Moolenaarif !exists("skip_vim_syntax_inits") 8523577c6faSBram Moolenaar if !exists("g:vimsyn_noerror") 853cfbc5ee4SBram Moolenaar hi def link vimBehaveError vimError 854cfbc5ee4SBram Moolenaar hi def link vimCollClassErr vimError 855cfbc5ee4SBram Moolenaar hi def link vimErrSetting vimError 856c236c16dSBram Moolenaar hi def link vimEmbedError vimError 857cfbc5ee4SBram Moolenaar hi def link vimFTError vimError 858cfbc5ee4SBram Moolenaar hi def link vimFunctionError vimError 8598299df96SBram Moolenaar hi def link vimFunc vimError 860cfbc5ee4SBram Moolenaar hi def link vimHiAttribList vimError 861cfbc5ee4SBram Moolenaar hi def link vimHiCtermError vimError 862cfbc5ee4SBram Moolenaar hi def link vimHiKeyError vimError 863cfbc5ee4SBram Moolenaar hi def link vimKeyCodeError vimError 864cfbc5ee4SBram Moolenaar hi def link vimMapModErr vimError 865cfbc5ee4SBram Moolenaar hi def link vimSubstFlagErr vimError 866cfbc5ee4SBram Moolenaar hi def link vimSynCaseError vimError 8673577c6faSBram Moolenaar hi def link vimBufnrWarn vimWarn 868cfbc5ee4SBram Moolenaar endif 869cfbc5ee4SBram Moolenaar 870e37d50a5SBram Moolenaar hi def link vimAbb vimCommand 871cfbc5ee4SBram Moolenaar hi def link vimAddress vimMark 872a0f849eeSBram Moolenaar hi def link vimAugroupError vimError 873071d4279SBram Moolenaar hi def link vimAugroupKey vimCommand 87483d1b190SBram Moolenaar hi def link vimAuHighlight vimHighlight 875071d4279SBram Moolenaar hi def link vimAutoCmdOpt vimOption 876071d4279SBram Moolenaar hi def link vimAutoCmd vimCommand 87783d1b190SBram Moolenaar hi def link vimAutoEvent Type 878d58a3bf7SBram Moolenaar hi def link vimAutoCmdMod Special 879071d4279SBram Moolenaar hi def link vimAutoSet vimCommand 88083d1b190SBram Moolenaar hi def link vimBehaveModel vimBehave 881071d4279SBram Moolenaar hi def link vimBehave vimCommand 88283d1b190SBram Moolenaar hi def link vimBracket Delimiter 88383d1b190SBram Moolenaar hi def link vimCmplxRepeat SpecialChar 88483d1b190SBram Moolenaar hi def link vimCommand Statement 88583d1b190SBram Moolenaar hi def link vimComment Comment 8862c7f8c57SBram Moolenaar hi def link vim9Comment Comment 887071d4279SBram Moolenaar hi def link vimCommentString vimString 88883d1b190SBram Moolenaar hi def link vimCommentTitle PreProc 889071d4279SBram Moolenaar hi def link vimCondHL vimCommand 89083d1b190SBram Moolenaar hi def link vimContinue Special 89183d1b190SBram Moolenaar hi def link vimCtrlChar SpecialChar 892071d4279SBram Moolenaar hi def link vimEchoHLNone vimGroup 893071d4279SBram Moolenaar hi def link vimEchoHL vimCommand 89483d1b190SBram Moolenaar hi def link vimElseIfErr Error 895071d4279SBram Moolenaar hi def link vimElseif vimCondHL 89683d1b190SBram Moolenaar hi def link vimEnvvar PreProc 89783d1b190SBram Moolenaar hi def link vimError Error 89883d1b190SBram Moolenaar hi def link vimFBVar vimVar 899071d4279SBram Moolenaar hi def link vimFgBgAttrib vimHiAttrib 9002547aa93SBram Moolenaar hi def link vimHiCtermul vimHiTerm 90183d1b190SBram Moolenaar hi def link vimFold Folded 902071d4279SBram Moolenaar hi def link vimFTCmd vimCommand 903071d4279SBram Moolenaar hi def link vimFTOption vimSynType 904071d4279SBram Moolenaar hi def link vimFuncKey vimCommand 90583d1b190SBram Moolenaar hi def link vimFuncName Function 90683d1b190SBram Moolenaar hi def link vimFuncSID Special 90783d1b190SBram Moolenaar hi def link vimFuncVar Identifier 908071d4279SBram Moolenaar hi def link vimGroupAdd vimSynOption 9096be7f873SBram Moolenaar hi def link vimGroupName vimGroup 910071d4279SBram Moolenaar hi def link vimGroupRem vimSynOption 91183d1b190SBram Moolenaar hi def link vimGroupSpecial Special 91283d1b190SBram Moolenaar hi def link vimGroup Type 91383d1b190SBram Moolenaar hi def link vimHiAttrib PreProc 9146be7f873SBram Moolenaar hi def link vimHiClear vimHighlight 915071d4279SBram Moolenaar hi def link vimHiCtermFgBg vimHiTerm 916071d4279SBram Moolenaar hi def link vimHiCTerm vimHiTerm 917071d4279SBram Moolenaar hi def link vimHighlight vimCommand 918071d4279SBram Moolenaar hi def link vimHiGroup vimGroupName 919071d4279SBram Moolenaar hi def link vimHiGuiFgBg vimHiTerm 920071d4279SBram Moolenaar hi def link vimHiGuiFont vimHiTerm 921071d4279SBram Moolenaar hi def link vimHiGuiRgb vimNumber 922071d4279SBram Moolenaar hi def link vimHiGui vimHiTerm 92383d1b190SBram Moolenaar hi def link vimHiNmbr Number 924071d4279SBram Moolenaar hi def link vimHiStartStop vimHiTerm 92583d1b190SBram Moolenaar hi def link vimHiTerm Type 926071d4279SBram Moolenaar hi def link vimHLGroup vimGroup 92783d1b190SBram Moolenaar hi def link vimHLMod PreProc 928071d4279SBram Moolenaar hi def link vimInsert vimString 92913d5aeefSBram Moolenaar hi def link vimIskSep Delimiter 930071d4279SBram Moolenaar hi def link vimKeyCode vimSpecFile 93183d1b190SBram Moolenaar hi def link vimKeyword Statement 932071d4279SBram Moolenaar hi def link vimLet vimCommand 9331ff14ba2SBram Moolenaar hi def link vimLetHereDoc vimString 9341ff14ba2SBram Moolenaar hi def link vimLetHereDocStart Special 9351ff14ba2SBram Moolenaar hi def link vimLetHereDocStop Special 936071d4279SBram Moolenaar hi def link vimLineComment vimComment 9372c7f8c57SBram Moolenaar hi def link vim9LineComment vimComment 938071d4279SBram Moolenaar hi def link vimMapBang vimCommand 939071d4279SBram Moolenaar hi def link vimMapModKey vimFuncSID 940071d4279SBram Moolenaar hi def link vimMapMod vimBracket 941071d4279SBram Moolenaar hi def link vimMap vimCommand 94283d1b190SBram Moolenaar hi def link vimMark Number 943071d4279SBram Moolenaar hi def link vimMarkNumber vimNumber 944071d4279SBram Moolenaar hi def link vimMenuMod vimMapMod 945071d4279SBram Moolenaar hi def link vimMenuNameMore vimMenuName 94683d1b190SBram Moolenaar hi def link vimMenuName PreProc 947071d4279SBram Moolenaar hi def link vimMtchComment vimComment 94805159a0cSBram Moolenaar hi def link vimNorm vimCommand 94983d1b190SBram Moolenaar hi def link vimNotation Special 9505c73622aSBram Moolenaar hi def link vimNotFunc vimCommand 951071d4279SBram Moolenaar hi def link vimNotPatSep vimString 95283d1b190SBram Moolenaar hi def link vimNumber Number 95383d1b190SBram Moolenaar hi def link vimOperError Error 95483d1b190SBram Moolenaar hi def link vimOper Operator 955388a5d4fSBram Moolenaar hi def link vimOperStar vimOper 95683d1b190SBram Moolenaar hi def link vimOption PreProc 95783d1b190SBram Moolenaar hi def link vimParenSep Delimiter 958d2855f54SBram Moolenaar hi def link vimPatSepErr vimError 9595c73622aSBram Moolenaar hi def link vimPatSepR vimPatSep 96083d1b190SBram Moolenaar hi def link vimPatSep SpecialChar 961071d4279SBram Moolenaar hi def link vimPatSepZone vimString 9625c73622aSBram Moolenaar hi def link vimPatSepZ vimPatSep 96383d1b190SBram Moolenaar hi def link vimPattern Type 964071d4279SBram Moolenaar hi def link vimPlainMark vimMark 965071d4279SBram Moolenaar hi def link vimPlainRegister vimRegister 96683d1b190SBram Moolenaar hi def link vimRegister SpecialChar 96783d1b190SBram Moolenaar hi def link vimScriptDelim Comment 96883d1b190SBram Moolenaar hi def link vimSearchDelim Statement 969e2f98b95SBram Moolenaar hi def link vimSearch vimString 97083d1b190SBram Moolenaar hi def link vimSep Delimiter 971071d4279SBram Moolenaar hi def link vimSetMod vimOption 97283d1b190SBram Moolenaar hi def link vimSetSep Statement 973071d4279SBram Moolenaar hi def link vimSetString vimString 97483d1b190SBram Moolenaar hi def link vimSpecFile Identifier 975071d4279SBram Moolenaar hi def link vimSpecFileMod vimSpecFile 97683d1b190SBram Moolenaar hi def link vimSpecial Type 97783d1b190SBram Moolenaar hi def link vimStatement Statement 978071d4279SBram Moolenaar hi def link vimStringCont vimString 97983d1b190SBram Moolenaar hi def link vimString String 980d2855f54SBram Moolenaar hi def link vimStringEnd vimString 98183d1b190SBram Moolenaar hi def link vimSubst1 vimSubst 98283d1b190SBram Moolenaar hi def link vimSubstDelim Delimiter 98383d1b190SBram Moolenaar hi def link vimSubstFlags Special 98483d1b190SBram Moolenaar hi def link vimSubstSubstr SpecialChar 985071d4279SBram Moolenaar hi def link vimSubstTwoBS vimString 986071d4279SBram Moolenaar hi def link vimSubst vimCommand 98783d1b190SBram Moolenaar hi def link vimSynCaseError Error 98883d1b190SBram Moolenaar hi def link vimSynCase Type 98983d1b190SBram Moolenaar hi def link vimSyncC Type 99083d1b190SBram Moolenaar hi def link vimSyncError Error 991071d4279SBram Moolenaar hi def link vimSyncGroupName vimGroupName 992071d4279SBram Moolenaar hi def link vimSyncGroup vimGroupName 99383d1b190SBram Moolenaar hi def link vimSyncKey Type 99483d1b190SBram Moolenaar hi def link vimSyncNone Type 995071d4279SBram Moolenaar hi def link vimSynContains vimSynOption 99683d1b190SBram Moolenaar hi def link vimSynError Error 997071d4279SBram Moolenaar hi def link vimSynKeyContainedin vimSynContains 998071d4279SBram Moolenaar hi def link vimSynKeyOpt vimSynOption 999071d4279SBram Moolenaar hi def link vimSynMtchGrp vimSynOption 1000071d4279SBram Moolenaar hi def link vimSynMtchOpt vimSynOption 1001071d4279SBram Moolenaar hi def link vimSynNextgroup vimSynOption 1002071d4279SBram Moolenaar hi def link vimSynNotPatRange vimSynRegPat 100383d1b190SBram Moolenaar hi def link vimSynOption Special 1004071d4279SBram Moolenaar hi def link vimSynPatRange vimString 1005071d4279SBram Moolenaar hi def link vimSynRegOpt vimSynOption 1006071d4279SBram Moolenaar hi def link vimSynRegPat vimString 100783d1b190SBram Moolenaar hi def link vimSynReg Type 1008071d4279SBram Moolenaar hi def link vimSyntax vimCommand 1009071d4279SBram Moolenaar hi def link vimSynType vimSpecial 101083d1b190SBram Moolenaar hi def link vimTodo Todo 10114d8f4761SBram Moolenaar hi def link vimType Type 10125c73622aSBram Moolenaar hi def link vimUnmap vimMap 101383d1b190SBram Moolenaar hi def link vimUserAttrbCmpltFunc Special 1014071d4279SBram Moolenaar hi def link vimUserAttrbCmplt vimSpecial 1015071d4279SBram Moolenaar hi def link vimUserAttrbKey vimOption 1016071d4279SBram Moolenaar hi def link vimUserAttrb vimSpecial 1017b4ff518dSBram Moolenaar hi def link vimUserAttrbError Error 1018e2719096SBram Moolenaar hi def link vimUserCmdError Error 101983d1b190SBram Moolenaar hi def link vimUserCommand vimCommand 10205c73622aSBram Moolenaar hi def link vimUserFunc Normal 10216be7f873SBram Moolenaar hi def link vimVar Identifier 10223577c6faSBram Moolenaar hi def link vimWarn WarningMsg 1023f37506f6SBram Moolenaarendif 1024071d4279SBram Moolenaar 1025cfbc5ee4SBram Moolenaar" Current Syntax Variable: {{{2 1026071d4279SBram Moolenaarlet b:current_syntax = "vim" 10276be7f873SBram Moolenaar 10286be7f873SBram Moolenaar" --------------------------------------------------------------------- 10296be7f873SBram Moolenaar" Cleanup: {{{1 1030a0f849eeSBram Moolenaardelc VimFolda 1031a0f849eeSBram Moolenaardelc VimFoldf 1032a0f849eeSBram Moolenaardelc VimFoldl 1033a0f849eeSBram Moolenaardelc VimFoldm 1034a0f849eeSBram Moolenaardelc VimFoldp 1035a0f849eeSBram Moolenaardelc VimFoldP 1036a0f849eeSBram Moolenaardelc VimFoldr 1037a0f849eeSBram Moolenaardelc VimFoldt 10386be7f873SBram Moolenaarlet &cpo = s:keepcpo 10396be7f873SBram Moolenaarunlet s:keepcpo 1040071d4279SBram Moolenaar" vim:ts=18 fdm=marker 1041