syntastic-local-lib-path.vim


Ⅰ. 插件描述

A plugin for syntastic to add local lib path such as local/lib/perl5.

Ⅱ. 基本信息

创建日期:  2012-12-19
使用用户:  2
Github星:  1
插件作者:  Yuuki Tsubouchi

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'yuuki1/syntastic-local-lib-path-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'yuuki1/syntastic-local-lib-path-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'yuuki1/syntastic-local-lib-path-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/yuuki1/syntastic-local-lib-path.vim

Ⅳ. 文档说明

# syntastic-local-lib-path

syntastic-local-lib-path is a plugin for syntastic.

It solves the problem that syntastic doesn't search modules installed to local directories by bundler, carton and npm and you must specify the absolute path of them.
It demands you just specifing relative path from project root directory to the local directories.

Currently, syntastic-local-lib-path doesn't support languages except for Perl because syntastic enables you specifing lib path only for Perl.

Usage

g:syntastic_perl_local_lib_path = "vendor/lib"  " default is 'lib,extlib,local/lib/perl5'
autocmd FileType perl SyntasticLocalLibPath

添加新评论