How to make Vim detect filetype from the shebang line?

Following the instructions listed in :help new-filetype-scripts,
create the scripts.vim file in the user runtime directory (~/.vim/
on Unix-like systems), and write the following script in it:

if did_filetype()
    finish
endif
if getline(1) =~# '^#!.*/bin/env\s\+node\>'
    setfiletype javascript
endif

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)