patch 8.2.3603: fish filetype not recognized
Problem: Fish filetype not recognized.
Solution: Add a file pattern and match script line. (Doug Kearns)
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 8fd2fc0..875823c 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -617,6 +617,9 @@
" Fetchmail RC file
au BufNewFile,BufRead .fetchmailrc setf fetchmail
+" Fish shell
+au BufNewFile,BufRead *.fish setf fish
+
" FlexWiki - disabled, because it has side effects when a .wiki file
" is not actually FlexWiki
"au BufNewFile,BufRead *.wiki setf flexwiki
diff --git a/runtime/scripts.vim b/runtime/scripts.vim
index 79fd0a7..0ff8e49 100644
--- a/runtime/scripts.vim
+++ b/runtime/scripts.vim
@@ -194,6 +194,10 @@
elseif s:name =~# 'rsc\>'
set ft=routeros
+ " Fish shell
+ elseif s:name =~# 'fish\>'
+ set ft=fish
+
endif
unlet s:name