diff runtime/scripts.vim @ 26141:77ad8ea01c00 v8.2.3603

patch 8.2.3603: fish filetype not recognized Commit: https://github.com/vim/vim/commit/b1b163efd7bb3ca68cce101d4e431559d2944a8e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 16 15:28:10 2021 +0000 patch 8.2.3603: fish filetype not recognized Problem: Fish filetype not recognized. Solution: Add a file pattern and match script line. (Doug Kearns)
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Nov 2021 16:30:04 +0100
parents 7922e1972d58
children ce3678583211
line wrap: on
line diff
--- a/runtime/scripts.vim
+++ b/runtime/scripts.vim
@@ -194,6 +194,10 @@ if s:line1 =~# "^#!"
   elseif s:name =~# 'rsc\>'
     set ft=routeros
 
+    " Fish shell
+  elseif s:name =~# 'fish\>'
+    set ft=fish
+
   endif
   unlet s:name