Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
scripts.vim28 linesDownload Raw Back to vim92
1" Vim support file to detect file types in scripts2"3" Maintainer:	The Vim Project <https://github.com/vim/vim>4" Last Change:	2023 Aug 275" Former Maintainer:	Bram Moolenaar <Bram@vim.org>6 7" This file is called by an autocommand for every file that has just been8" loaded into a buffer.  It checks if the type of file can be recognized by9" the file contents.  The autocommand is in $VIMRUNTIME/filetype.vim.10 11 12" Bail out when a FileType autocommand has already set the filetype.13if did_filetype()14  finish15endif16 17" Load the user defined scripts file first18" Only do this when the FileType autocommand has not been triggered yet19if exists("myscriptsfile") && filereadable(expand(myscriptsfile))20  execute "source " . myscriptsfile21  if did_filetype()22    finish23  endif24endif25 26" The main code is in a compiled function for speed.27call dist#script#DetectFiletype()28 
codekingpro/portable-devtools · Team Ai