vim-shebang


Ⅰ. 插件描述

Vim filetype detection by the she·bang line at file.

Ⅱ. 基本信息

创建日期:  2012-11-13
使用用户:  11
Github星:  18
插件作者:  Vital Kudzelka

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'vitalk/vim-shebang'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'vitalk/vim-shebang'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'vitalk/vim-shebang'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vitalk/vim-shebang

Ⅳ. 文档说明

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/envs+lua>

COPYRIGHT

Copyright © 2012 Vital Kudzelka.
Use it for Good not Evil.

添加新评论