codekingpro/portable-devtools
114k
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 manual".7" It installs the Syntax autocommands, but no the FileType autocommands.8 9if !has("syntax")10 finish11endif12 13" Load the Syntax autocommands and set the default methods for highlighting.14if !exists("syntax_on")15 so <sfile>:p:h/synload.vim16endif17 18let syntax_manual = 119 20" Overrule the connection between FileType and Syntax autocommands. This sets21" the syntax when the file type is detected, without changing the value.22augroup syntaxset23 au! FileType * exe "set syntax=" . &syntax24augroup END25 26" If the GUI is already running, may still need to install the FileType menu.27" Don't do it when the 'M' flag is included in 'guioptions'.28if has("menu") && has("gui_running") && !exists("did_install_syntax_menu") && &guioptions !~# 'M'29 source $VIMRUNTIME/menu.vim30endif31 