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 |