Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (38 sloc) 1.69 KB


Pony power for working with Django projects in Vim.

Pony powered


For those using pathogen, simply copy/clone the entire repo in your ~/.vim/bundle.

Otherwise, copy plugin/pony.vim to your ~/.vim/plugin folder.

Jump commands

Some basic commands are available to jump to commonly used files in Django:

  • Dadmin:
  • Dmodels:
  • Dsettings:
  • Dtests:
  • Durls:
  • Dviews:

All these jump commands take an optional "app" argument, and will jump accordingly to the file in that app. Defaults to the current directory.

Example :

:Dviews app " opens app/
:Dmodels " opens app/

Managing commands

The utility script is available via :Dmanage. Note that any command involving the utility must be run from that directory.

Shortcuts are available for a few common commands:

  • Drunserver : runserver
  • Dsyncdb : syncdb
  • Dshell : shell
  • Ddbshell : dbshell

Tip: I use :Dr for runserver, :Dsy for syncdb and :Dsh for shell.


g:pony_prefix           prefix to all Pony's commands (default: "D")
g:pony_display_colors   flag indicating if the should output colors (default: 1)
g:pony_manage_filename  filename of the script (default:
g:pony_python_cmd       exact command to run on the script (default: python)