From 2eae5db069dc171f74cd863487655f6a88e5384d Mon Sep 17 00:00:00 2001 From: Mehmet Samet Duman Date: Fri, 3 Apr 2026 22:21:25 +0300 Subject: NOISSUE rebrand vim to MNV's not Vim Signed-off-by: Mehmet Samet Duman --- uvim/runtime/scripts.mnv | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 uvim/runtime/scripts.mnv (limited to 'uvim/runtime/scripts.mnv') diff --git a/uvim/runtime/scripts.mnv b/uvim/runtime/scripts.mnv new file mode 100644 index 0000000000..97204ad439 --- /dev/null +++ b/uvim/runtime/scripts.mnv @@ -0,0 +1,27 @@ +" MNV support file to detect file types in scripts +" +" Maintainer: The MNV Project +" Last Change: 2023 Aug 27 +" Former Maintainer: Bram Moolenaar + +" This file is called by an autocommand for every file that has just been +" loaded into a buffer. It checks if the type of file can be recognized by +" the file contents. The autocommand is in $MNVRUNTIME/filetype.mnv. + + +" Bail out when a FileType autocommand has already set the filetype. +if did_filetype() + finish +endif + +" Load the user defined scripts file first +" Only do this when the FileType autocommand has not been triggered yet +if exists("myscriptsfile") && filereadable(expand(myscriptsfile)) + execute "source " . myscriptsfile + if did_filetype() + finish + endif +endif + +" The main code is in a compiled function for speed. +call dist#script#DetectFiletype() -- cgit 0.0.5-2-1-g0f52