sponsor Vim development Vim logo Vim Book Ad

vim-shebang : Better filetype detection by the she·bang line at file

 script karma  Rating 13/4, Downloaded by 606  Comments, bugs, improvements  Vim wiki

created by
Vital Kudzelka
 
script type
ftplugin
 
description
Vim filetype detection by the she·bang /SHəˈbaNG/ at file if all built-ins type
detection mechanisms are failed.

USE

Plugin does not require any configuration. Every time you enter to buffer it
trying to detect current filetype by shebang at first line. New filetype applied
to file on success. Use '!#' shortcut to force reset filetype.

Some basic shebang patterns for common languages included in distribution, such
as python, ruby, different shells. But if that do not covers your needs feel
free to add your own. For example:

AddShebangPattern! lua ^#!.*/bin/env\s\+lua\>
 
install details
Use your favorite installation method

Plug 'vitalk/vim-shebang'
vim +PlugInstall

cd ~/.vim/bundle
git clone https://github.com/vitalk/vim-shebang
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-shebang-0.3.zip 0.3 2016-04-02 7.0 Vital Kudzelka Initial upload
ip used for rating: 3.139.62.103

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github