VIM for Python and Django Development

VIM-PyDjango created by Programmer for Programmer who work on Python & Django everyday.

It's coming with several features :

Autocomplete, Pep8 checker, File Manager, Function bar, detect unused module/variable, Auto-Commenting, Python/Django/Custom snippets and many else!

How it works ?

It will detect automatically your code while typing. All code will show with related options.

Code mistake, unused variable, un-standard Python will checked automatically.

Helpful notification will show on bottom so it not disturb your view.

Not only for python files, it also pay attention for html, js and all django related files.

Watch Video example usage on :

http://www.youtube.com/watch?v=a-KfmxoxdfI

Installation

It using Vundle for manage all plugin. Install Vundle by :

sudo apt-get install git
cd ~/
git clone git://github.com/yodiaditya/vim-pydjango.git
ln -s ~/vim-pydjango/.vim ~/.vim
ln -s ~/vim-pydjango/.vimrc ~/.vimrc
git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

To install. please do :

vim ~/.vimrc
:BundleInstall

Follow https://github.com/gmarik/vundle for more detailed information.

Don't forget to install dependency packages (I'm using Ubuntu 11.10):

sudo apt-get install python-setuptools python-pip exuberant-ctags
sudo pip install git+git://github.com/kevinw/pyflakes.git
sudo pip install pylint
sudo pip install pep8

Python Programming Standards

There are several standards used in this VIM

  1. Pep8

  2. PyFlakes

  3. Convert HAML into HTML using Sparkup

  4. Auto-Commenter

Debugging Python

For debugging Django with Development Server, I use ipdb

import ipdb; ipdb.set_trace()

To install ipdb on Ubuntu :

sudo apt-get install ipython
sudo pip install ipdb

Development Rules

VIM-PyDjango use 80 lines terminals ( Good for development )

It using tab & space size as Python standard.

Shorcut keys

Leader = ,

MRU = , + space

Pep8 = F6

FileManager + Tagbar = F8

FileManager = , + t

FuzzFinder Files = F2

FuzzFinder Buffer = , + b

Tagbar = , + l

Paste = Ctrl + V

Plugin Installed

Color scheme Mustang : http://hcalves.deviantart.com/art/Mustang-Vim-Colorscheme-98974484

Syntastic :https://github.com/scrooloose/syntastic

FuzzyFinder : http://www.vim.org/scripts/script.php?script_id=1984

L9 : http://www.vim.org/scripts/script.php?script_id=3252

Pyflakes : https://github.com/kevinw/pyflakes-vim

Pep8 : https://github.com/vim-scripts/pep8

NerdTree : https://github.com/scrooloose/nerdtree

NerdCommenter : https://github.com/scrooloose/nerdcommenter

Tagbar : https://github.com/majutsushi/tagbar

Sparkup : http://jetpackweb.com/blog/2010/03/04/write-html-faster-with-sparkup-vim-and-textmate/

MRU : https://github.com/vim-scripts/mru.vim

Tagbar : https://github.com/majutsushi/tagbar

IndentPython : https://github.com/vim-scripts/indentpython.vim

Fugitive : https://github.com/tpope/vim-fugitive

Why you should use this ?

VIM-PyDjango using latest and updated VIM plugins and tools.

Cut a lot time for develop python & django applications after use it!

Deprecated

I no longer use VIM-Debug from http://github.com/jabapyth/vim-debug.

You can see how to installation and screenshots there.

UltiSnips : http://www.vim.org/scripts/script.php?script_id=2715

NeoComplcache : https://github.com/Shougo/neocomplcache

VIM for Python and Django Development的更多相关文章

  1. [Django] Setting up Django Development Environment in Ubuntu 14.04

    1. Python Of course you will need Python. Still Python 2.7 is preferred, however if you would like t ...

  2. 051.Python的Django框架简单使用

    一 HTTP相关概念 http协议包含由浏览器发送数据到服务器需要遵循的请求协议与服务器发送数据到浏览器需要遵循的响应协议.用于HTTP协议交互的信息被为HTTP报文.请求端(客户端)的HTTP报文 ...

  3. [Python] 利用Django进行Web开发系列(一)

    1 写在前面 在没有接触互联网这个行业的时候,我就一直很好奇网站是怎么构建的.现在虽然从事互联网相关的工作,但是也一直没有接触过Web开发之类的东西,但是兴趣终归还是要有的,而且是需要自己动手去实践的 ...

  4. Python 学习笔记13:Python + wsgi + django 配置。坑爹的python3和wsgi不兼容的解决

    今人不见古时月,今月曾经照古人.生命是如此的美丽与短暂! 学习Python已经两个月了,Python的语法通过做简单的语法题和看Python语法介绍,有了初步的了解.但上班还是要做别的事情,所以感觉学 ...

  5. 第四百零五节,centos7下搭建sentry错误日志服务器,接收python以及Django错误,

    第四百零五节,centos7下搭建sentry错误日志服务器,接收python以及Django错误, 注意:版本,不然会报错 Docker >=1.11Compose >1.6.0 通过d ...

  6. Python的Django REST框架中的序列化及请求和返回

    Python的Django REST框架中的序列化及请求和返回 序列化Serialization 1. 设置一个新的环境 在我们开始之前, 我们首先使用virtualenv要创建一个新的虚拟环境,以使 ...

  7. 052.Python前端Django框架路由层和视图层

    一.路由层(URLconf) 1.1 路由层简单配置 URL配置(URLconf)就像Django 所支撑网站的目录.它的本质是URL与要为该URL调用的视图函数之间的映射表:你就是以这种方式告诉Dj ...

  8. [Python] 利用Django进行Web开发系列(二)

    1 编写第一个静态页面——Hello world页面 在上一篇博客<[Python] 利用Django进行Web开发系列(一)>中,我们创建了自己的目录mysite. Step1:创建视图 ...

  9. Window环境下Python和Django的安装

    转载地址:http://blog.csdn.net/haoni123321/article/details/7593821 1.下载python,本文使用python-2.7.2.msi 2.下载dj ...

随机推荐

  1. struts2的核心和工作原理

    struts2的核心和工作原理 设计目标 Struts设计的第一目标就是使MVC模式应用于web程序设计.技术优势 Struts2有两方面的技术优势,一是所有的Struts2应用程序都是基于clien ...

  2. ES6新特性:利用解构赋值 (destructuring assignment), 简化代码

    本文的Demo的运行环境为nodeJS, 参考:让nodeJS支持ES6的词法----babel的安装和使用 : 解构赋值是一种表达式, 利用这种新语法, 可以直接从数组或者对象中快速提取值 赋值给不 ...

  3. 强联通 HDU 2767 3836

    n个点m条边 最少需要几条边变成强连通图 设有a个结点的入读为0, b个结点的出度为0, 则 max{a, b}就是答案. 注意特殊情况: 当原图已经强连通时, 答案是0而不是1. 加一条边少一个入度 ...

  4. 谈谈MVC项目中的缓存功能设计的相关问题

    本文收集一些关于项目中为什么需要使用缓存功能,以及怎么使用等,在实际开发中对缓存的设计的考虑 为什么需要讨论缓存呢? 缓存是一个中大型系统所必须考虑的问题.为了避免每次请求都去访问后台的资源(例如数据 ...

  5. iOS 硬件授权检测:定位服务、通讯录、日历、提醒事项、照片、蓝牙共享、麦克风、相机等(转)

    转载自:http://www.cocoachina.com/ios/20151214/14502.html iOS系统版本的不断升级的前提,伴随着用户使用设备的安全性提升,iOS系统对于App需要使用 ...

  6. 二叉树遍历Java实现

    [仅贴代码及测试结果] -------------------BinaryTree.java------------------------------ class Tree<E>{ E ...

  7. Redis哈希-hash

    Redis的hash类型数据存储极为重要 hset K V  赋值一个hash 其中V为 (key, value) 127.0.0.1:6379> hset user id 1(integer) ...

  8. [bzoj1854][SCOI2010]游戏

    Description 一个装备有两个属性,一个装备只能被使用一次,一次使用一种属性.攻击boss时需按属性1.属性2.属性3...属性k的顺序使用,问k最大为多少. Input 输入的第一行是一个整 ...

  9. 【BZOJ-1576】安全路径Travel Dijkstra + 并查集

    1576: [Usaco2009 Jan]安全路经Travel Time Limit: 10 Sec  Memory Limit: 64 MBSubmit: 1044  Solved: 363[Sub ...

  10. 【poj1085】 Triangle War

    http://poj.org/problem?id=1085 (题目链接) 题意 A,B两人玩游戏,在一个大三角形上放火柴,若A放上一根火柴后成功组成一个三角形,那么这个三角形就归属于A,并且A被奖励 ...