Ⅰ. 插件描述
Vim Nginx Syntax Highlighting FilesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'leonb/vim-nginx-is-holy'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'leonb/vim-nginx-is-holy'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'leonb/vim-nginx-is-holy'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/leonb/vim-nginx
Ⅳ. 文档说明
# Vim Nginx Syntax Highlighting
Extraction of the Nginx Vim syntax files from http://hg.nginx.org/nginx/.
Installation
I recommend using [Tim Pope's pathogen
plugin](https://github.com/tpope/vim-pathogen), [Shougo's NeoBundle
plugin](https://github.com/Shougo/neobundle.vim) or [Gmarik's Vundle
plugin](https://github.com/gmarik/Vundle.vim) to install this.
How this repository is created
git init
git remote add nginx git@github.com:nginx/nginx.git
git pull -u nginx master
git filter-branch --subdirectory-filter contrib/vim HEAD -- --all
git reset --hard
git gc
git pruneUpdating this repository
git checkout -b rebase
git fetch nginx master
git reset --hard nginx/master
git filter-branch -f --subdirectory-filter contrib/vim HEAD -- --all
git checkout master
git merge rebase
git branch -D rebaseLicense
Same terms as Nginx itself.