mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -04:00
runtime(filetype): move filetype detection into filetypedetect augroup
closes: #16701 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
6a15942bc2
commit
51eefba1d6
@ -1,7 +1,7 @@
|
|||||||
" Vim support file to detect file types
|
" Vim support file to detect file types
|
||||||
"
|
"
|
||||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2025 Feb 08
|
" Last Change: 2025 Feb 22
|
||||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Listen very carefully, I will say this only once
|
" Listen very carefully, I will say this only once
|
||||||
@ -3284,6 +3284,15 @@ au BufNewFile,BufRead */etc/xinetd.d/* call s:StarSetf('xinetd')
|
|||||||
" yum conf (close enough to dosini)
|
" yum conf (close enough to dosini)
|
||||||
au BufNewFile,BufRead */etc/yum.repos.d/* call s:StarSetf('dosini')
|
au BufNewFile,BufRead */etc/yum.repos.d/* call s:StarSetf('dosini')
|
||||||
|
|
||||||
|
" Yarn lock
|
||||||
|
au BufNewFile,BufRead yarn.lock setf yaml
|
||||||
|
|
||||||
|
" Zathurarc
|
||||||
|
au BufNewFile,BufRead zathurarc setf zathurarc
|
||||||
|
|
||||||
|
" Rofi stylesheet
|
||||||
|
au BufNewFile,BufRead *.rasi setf rasi
|
||||||
|
|
||||||
" Z-Shell script ending in a star
|
" Z-Shell script ending in a star
|
||||||
au BufNewFile,BufRead .zsh*,.zlog*,.zcompdump* call s:StarSetf('zsh')
|
au BufNewFile,BufRead .zsh*,.zlog*,.zcompdump* call s:StarSetf('zsh')
|
||||||
au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh')
|
au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh')
|
||||||
@ -3329,15 +3338,6 @@ au filetypedetect BufNewFile,BufRead,StdinReadPost *
|
|||||||
\ setf FALLBACK conf |
|
\ setf FALLBACK conf |
|
||||||
\ endif
|
\ endif
|
||||||
|
|
||||||
" Yarn lock
|
|
||||||
au BufNewFile,BufRead yarn.lock setf yaml
|
|
||||||
|
|
||||||
" Zathurarc
|
|
||||||
au BufNewFile,BufRead zathurarc setf zathurarc
|
|
||||||
|
|
||||||
" Rofi stylesheet
|
|
||||||
au BufNewFile,BufRead *.rasi setf rasi
|
|
||||||
|
|
||||||
" If the GUI is already running, may still need to install the Syntax menu.
|
" If the GUI is already running, may still need to install the Syntax menu.
|
||||||
" Don't do it when the 'M' flag is included in 'guioptions'.
|
" Don't do it when the 'M' flag is included in 'guioptions'.
|
||||||
if has("menu") && has("gui_running")
|
if has("menu") && has("gui_running")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user