mirror of
https://github.com/khaveesh/vim-fish-syntax.git
synced 2026-09-10 07:16:31 -04:00
8 lines
241 B
VimL
8 lines
241 B
VimL
au BufNewFile,BufRead *.fish setfiletype fish
|
|
|
|
" Detect fish scripts by the shebang line.
|
|
autocmd BufNewFile,BufRead,StdinReadPost *
|
|
\ if getline(1) =~ '^#!.*\Wfish\s*$' |
|
|
\ setfiletype fish |
|
|
\ endif
|