vim: fix ft detection with fish

master
an 2019-08-18 09:27:05 -04:00
parent 69b50ee944
commit 9de51067d2
1 changed files with 5 additions and 0 deletions

View File

@ -486,6 +486,11 @@ endif
" suppress readonly warnings
au BufEnter * set noreadonly
autocmd BufRead *
\ if getline(1) =~# '\v^#!%(\f*/|/usr/bin/env\s*<)fish>' |
\ setlocal filetype=fish |
\ endif
" Mapping --------------------------------------------------------------------|
" Alignment mode