Ⅰ. 插件描述
Add DJANGO_SETTINGS_MODULE to enable pythoncomplete or whatever for django in vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'gerardo/vim-django-support-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'gerardo/vim-django-support-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'gerardo/vim-django-support-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/gerardo/vim-django-support
Ⅳ. 文档说明
Vim django support plugin
:VERSION: 0.2.0
This plugin helps you to set DJANGO_SETTINGS_MODULE automatically.
That mean your pythoncomplete <http://www.vim.org/scripts/script.php?script_id=1542> now support Django omni completion. Your nose.vim <https://github.com/lambdalisue/nose.vim> now support Django unittest.
This plugin solve every issue related to DJANGO_SETTINGS_MODULE
.. Figure:: https://github.com/lambdalisue/vim-django-support/raw/master/img/screenshot.png
Omni-completion of ``django.db`` with pythoncomplete
How to install
Using vundle <https://github.com/gmarik/vundle> or pathogen <http://www.vim.org/scripts/script.php?script_id=2332> is recommended or simply extract to your vim directory
Required
Vim compiled with +python and Python 2.5 or above.