# Vim functions for file type detection
#
# Maintainer: The Vim Project <https://github.com/vim/vim>
-# Last Change: 2026 Feb 06
+# Last Change: 2026 Feb 18
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
# These functions are moved here from runtime/filetype.vim to make startup
"rakumod": "raku",
"rakudoc": "raku",
"rakutest": "raku",
+ # Razor
+ "cshtml": "razor",
+ "razor": "razor",
# Renderman Interface Bytestream
"rib": "rib",
# Rego Policy Language
" Vim support file to detect file types
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2026 Jan 20
+" Last Change: 2026 Feb 18
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
" If the filetype can be detected from extension or file name(the final path component),
" HTML (.stm for server side, .shtml is server-side or superhtml)
au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call dist#ft#FThtml()
-au BufNewFile,BufRead *.cshtml setf html
" Host config
au BufNewFile,BufRead */etc/host.conf setf hostconf
hostconf: ['/etc/host.conf', 'any/etc/host.conf'],
hostsaccess: ['/etc/hosts.allow', '/etc/hosts.deny', 'any/etc/hosts.allow', 'any/etc/hosts.deny'],
# file.component.html should be HTML, not Angular, see #13594
- html: ['file.html', 'file.htm', 'file.cshtml', 'file.component.html'],
+ html: ['file.html', 'file.htm', 'file.component.html'],
htmlm4: ['file.html.m4'],
httest: ['file.htt', 'file.htb'],
http: ['file.http'],
rapid: ['file.sysx', 'file.Sysx', 'file.SysX', 'file.SYSx', 'file.SYSX', 'file.modx', 'file.Modx', 'file.ModX', 'file.MODx', 'file.MODX'],
rasi: ['file.rasi', 'file.rasinc'],
ratpoison: ['.ratpoisonrc', 'ratpoisonrc'],
+ razor: ['file.cshtml', 'file.razor'],
rbs: ['file.rbs'],
rc: ['file.rc', 'file.rch'],
rcs: ['file,v'],