diff options
Diffstat (limited to 'ftdetect/fish.vim')
| -rw-r--r-- | ftdetect/fish.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ftdetect/fish.vim b/ftdetect/fish.vim new file mode 100644 index 000000000..6b4dafa37 --- /dev/null +++ b/ftdetect/fish.vim @@ -0,0 +1,5 @@ +autocmd BufRead,BufNewFile *.fish setfiletype fish +autocmd BufRead * + \ if getline(1) =~# '\v^#!%(\f*/|/usr/bin/env\s*<)fish>' | + \ setfiletype fish | + \ endif |
