Ⅰ. 插件描述
neocomplcache snippet complete for nginx configuration.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用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
- install the neocomplcache.vim
- install the neocomplcache-snippets-complete
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
- Nginx
- neocomplcache (vim.org) (github)
- neocomplcache-snippets-complete (github)
- vim doc: ftdetect
- another Vim plugin for nginx ..
- nginx.vim (syntax)
- @evanmiller forked nginx.vim (syntax, indent)
- @chase forked nginx.vim (syntax, indent, ftdetect)