Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
syntax.vim46 linesDownload Raw Back to syntax
1" Vim syntax support file2" Maintainer:	The Vim Project <https://github.com/vim/vim>3" Last Change:	2023 Aug 104" Former Maintainer:	Bram Moolenaar <Bram@vim.org>5 6" This file is used for ":syntax on".7" It installs the autocommands and starts highlighting for all buffers.8 9if !has("syntax")10  finish11endif12 13" If Syntax highlighting appears to be on already, turn it off first, so that14" any leftovers are cleared.15if exists("syntax_on") || exists("syntax_manual")16  so <sfile>:p:h/nosyntax.vim17endif18 19" Load the Syntax autocommands and set the default methods for highlighting.20runtime syntax/synload.vim21 22" Load the FileType autocommands if not done yet.23if exists("did_load_filetypes")24  let s:did_ft = 125else26  filetype on27  let s:did_ft = 028endif29 30" Set up the connection between FileType and Syntax autocommands.31" This makes the syntax automatically set when the file type is detected.32" Avoid an error when 'verbose' is set and <amatch> expansion fails.33augroup syntaxset34  au! FileType *	0verbose exe "set syntax=" . expand("<amatch>")35augroup END36 37 38" Execute the syntax autocommands for the each buffer.39" If the filetype wasn't detected yet, do that now.40" Always do the syntaxset autocommands, for buffers where the 'filetype'41" already was set manually (e.g., help buffers).42doautoall syntaxset FileType43if !s:did_ft44  doautoall filetypedetect BufRead45endif46 
codekingpro/portable-devtools · Team Ai