vim-shebang : Better filetype detection by the she·bang line at file
| script karma
Downloaded by 530
Comments, bugs, improvements
script versions (upload new version)
|Vim filetype detection by the she·bang /SHəˈbaNG/ at file if all built-ins type
detection mechanisms are failed.
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\>
|Use your favorite installation method
git clone https://github.com/vitalk/vim-shebang
Click on the package to download.
ip used for rating: 184.108.40.206