Ⅰ. 插件描述
A plugin for nginx copied from nginx/contrib/vim .Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'yanqd0/nginx-vim-frighten-you'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'yanqd0/nginx-vim-frighten-you'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'yanqd0/nginx-vim-frighten-you'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/yanqd0/nginx.vim
Ⅳ. 文档说明
# nginx.vim
A plugin for nginx copied from [nginx/contrib/vim].
Introduction
The code is originally release by Evan Miller
as a vim plugin nginx.vim
at [vim.org] in 2005.
The last version is 0.3.3 there, updated in the January of 2013.
In the December of 2013, Evan Miller submit the code into the [nginx] project.
Since then, there are 5 other commits.
This repository is created in 2017,
which makes it convenient to install with vim plugin managers, like Vundle or Pathogen.
The source code of nginx is stored with [Mercurial] in http://hg.nginx.org/nginx/ .
But there is an official read-only mirror [nginx/nginx] in GitHub, where this repository copied from.
Usage
If you use [Vundle.vim], add this to an approperiate place of your vimrc.
Plugin 'yanqd0/nginx.vim'After that, install it with :PluginInstall in Vim.
Other ways
In fact, there are other ways to use it.
Plugin 'nginx.vim'It refers to the plugin mirror [vim-scripts/nginx.vim],
which is out of date since 2013.
This repository will be updated irregularly.
If you want to update with [nginx/nginx],
notify me or fork it.
Besides, you can use [Vundle.vim] like this.
Plugin 'nginx/nginx', {'rtp': 'contrib/vim'}Yes, that means you don't mind to update an entire nginx project in your ~/.vim.
Change log since 0.3.3
The change log below is from [nginx/nginx].
| Title | Author | Date |
|---|---|---|
| Contrib: vim syntax, listen option and SSL/Mail protocol keywords. | othree | 2017-02-22 |
| Contrib: added 'commentstring' for vim-commentary support. | Armin Grodon | 2016-12-13 |
| Fixed spelling. | Josh Soref | 2016-04-07 |
| Removed the prototype mysql module. | Ruslan Ermilov | 2016-03-31 |
| Contrib: add more directives to vim syntax. | Peter Wu | 2014-10-22 |
| Contrib: add vim scripts to contrib/ directory. | Evan Miller | 2013-12-04 |