Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmcomets/vim-pony
Pony power for working with Django projects.
https://github.com/jmcomets/vim-pony
Last synced: 3 months ago
JSON representation
Pony power for working with Django projects.
- Host: GitHub
- URL: https://github.com/jmcomets/vim-pony
- Owner: jmcomets
- Created: 2011-04-25T20:53:22.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2018-06-24T13:45:32.000Z (over 6 years ago)
- Last Synced: 2024-04-14T12:08:52.610Z (8 months ago)
- Language: Vim script
- Homepage:
- Size: 14.6 KB
- Stars: 68
- Watchers: 1
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pony.vim
Pony power for working with Django projects in Vim.
![Pony powered](http://media.djangopony.com/img/small/badge.png)
## Installation
For those using [pathogen](https://github.com/tpope/vim-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: admin.py
- Dmodels: models.py
- Dsettings: settings.py
- Dtests: tests.py
- Durls: urls.py
- Dviews: views.pyAll 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/views.py
:Dmodels " opens app/models.py## Managing commands
The manage.py utility script is available via `:Dmanage`.
Note that any command involving the manage.py utility must be run
from that directory.Shortcuts are available for a few common manage.py commands:
- Drunserver : manage.py runserver
- Dsyncdb : manage.py syncdb
- Dshell : manage.py shell
- Ddbshell : manage.py dbshellTip: I use `:Dr` for runserver, `:Dsy` for syncdb and `:Dsh` for shell.
## Configuration
g:pony_prefix prefix to all Pony's commands (default: "D")
g:pony_display_colors flag indicating if the manage.py should output colors (default: 1)
g:pony_manage_filename filename of the manage.py script (default: manage.py)
g:pony_python_cmd exact command to run on the manage.py script (default: python)## Credits
- [Rainer Borene](https://github.com/rainerborene), the initial contributor
- [Jean-Marie Comets](https://github.com/jmcomets), current maintainer