Ⅰ. 插件描述
Run NPM commands in Vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'oinksoft/npm-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'oinksoft/npm-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'oinksoft/npm-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/oinksoft/npm.vim
Ⅳ. 文档说明
# npm.vim: Run NPM commands in Vim.
npm.vim makes it easy to run npm commands from Vim. It doesn't have any
interesting features like errorlist integration yet.
For Vim version 7.x.
Installation
Download npm.vim.zip from vim.org.
unzip npm.vim.zip
cp npm.vim.zip/doc/npm.txt ~/.vim/doc/
cp npm.vim.zip/plugin/npm.vim ~/.vim/plugin/
As usual, to build help:
:helptags ~/.vim/doc
Global Commands
:Npm <command> [options..]
Calls npm <command> [options]. Commands can be tab-completed.
Global Settings
g:npm_background = 0
If set to non-zero, runs all commands in background (so you lose their
output).
g:npm_custom_commands = []
If some NPM commands aren't being picked up, add them to this list.
g:npm_load_commands = 0
If set to non-zero, commands for tab completion are loaded at startup rather
than the first time completion is needed.
License
npm.vim is released under the MIT license. See the comments at the head of
npm.vim for the full license text, or the "COPYING" file you should have
received with your copy of this software.