vitalk / vim-shebang Goto Github PK
View Code? Open in Web Editor NEWVim filetype detection by the she·bang line at file.
Vim filetype detection by the she·bang line at file.
VIM-SHEBANG 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\> COPYRIGHT Copyright © 2012 Vital Kudzelka. Use it for Good not Evil.
This file does not get detected
#/usr/bin/env python
print('Hello worlds')
What needs to be done to make this plugin work with modern (neo)vim scripts?
The test functions such as
https://github.com/vitalk/vim-shebang/blob/master/autoload/shebang.vim#L17
do not seem necessary for vim-shebang
to detect the proper filetype.
How about putting them into a separate test
folder instead of autolad
?
Stumbled upon a bug today after having used this plugin for a while.
I put my node shebang today in my file.ts
typescript file, which after not completely understanding why my language server complained about me putting types into a javascript file.
Perhaps if the file extension ends with .ts
, you cannot make the assumption that we are looking at a javascript file?
If possible, i'd prefer #!/bin/sh
to set g:is_sh=1
according to original sh syntax instead of bash.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.