neocomplcache-nginx-snippet


Ⅰ. 插件描述

neocomplcache snippet complete for nginx configuration.

Ⅱ. 基本信息

创建日期:  2012-02-15
使用用户:  1
Github星:  2
插件作者:  Tak Nishigori

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'nishigori/neocomplcache-nginx-snippet'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'nishigori/neocomplcache-nginx-snippet'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'nishigori/neocomplcache-nginx-snippet'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/nishigori/neocomplcache-nginx-snippet

Ⅳ. 文档说明

# neocomplcache-nginx-snippet-complate

A neocomplcache snippet complate for the Nginx configuration.

Depends plugins

How to use

When you configure Nginx's file (nginx.conf, proxy.conf, fastcgi.conf ..),

Specified vim's filetype nginx.

If for some reason this plugin is not being added to neocomplcache-snippets-complete,
check that the filetype in vim contains.

For exam, Please add in your .vimrc:

augroup FiletypeDetect

au! BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/*,*/nginx/vhosts.d/*,nginx.conf setfiletype nginx

augroup END

or {your vim's runtimepath}/ftdetect/nginx.vim:

au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/*,*/nginx/vhosts.d/*,nginx.conf setfiletype nginx

Use with snipMate.vim

Then, moved snippet file.

cp {This Plugin Dir}/autoload/neocomplcache/sources/snippets_complete/nginx.snip $VIMRUNTIME/snippets/nginx.snippets

FUTURE

Not just the snippet, complete the nginx configuration's keyword. Maybe Yes :p

Info

添加新评论