Code Monkey home page Code Monkey logo

vim-pony's Introduction

pony.vim

Pony power for working with Django projects in Vim.

Pony powered

Installation

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: admin.py
  • Dmodels: models.py
  • Dsettings: settings.py
  • Dtests: tests.py
  • Durls: urls.py
  • Dviews: views.py

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/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 dbshell

Tip: 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

vim-pony's People

Contributors

jmcomets avatar rainerborene avatar squirrel532 avatar blueyed avatar dxist avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.