From 8b047fb570d4f45ddd4525a0a2f93af9ce04e082 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 26 Sep 2025 06:57:28 -0700 Subject: [PATCH] vim: use :setf to set the filetype (#8914) This is nicer because it only sets the filetype if it hasn't already been set. :setf[iletype] has been available since vim version 6. See: https://vimhelp.org/options.txt.html#%3Asetf --- src/config/vim.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/vim.zig b/src/config/vim.zig index 17ab0bc2e..37c614841 100644 --- a/src/config/vim.zig +++ b/src/config/vim.zig @@ -10,7 +10,7 @@ pub const ftdetect = \\" \\" THIS FILE IS AUTO-GENERATED \\ - \\au BufRead,BufNewFile */ghostty/config,*/ghostty/themes/* set ft=ghostty + \\au BufRead,BufNewFile */ghostty/config,*/ghostty/themes/* setf ghostty \\ ; pub const ftplugin =