Skip to content

A collection of utilities for navigating django projects in vim

Notifications You must be signed in to change notification settings

needle-wang/ViMango

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Install:

  • Put vimango.vim in $VIMRUNTIME/plugin
    using vundle would be better

  • Put vimango.py in $PYTHONPATH
    e.g. sudo ln -sf ~/.vim/bundle/ViMango/plugin/vimango.py /usr/local/lib/python2.7/dist-packages/vimango.py

keymap is gO on any urls.py line:

  • r'^url/$', 'app.views.func', ...
    will take you to func in app/views.py

  • r'^app$', include('app.urls'), ...
    will take you to app/urls.py

  • r'index', direct_to_template, {'template_name': 'app/index.html'}, ...
    will take you to templates/app/index.html

only work good with str style of view at one line
so, django and web.py's url can be parsed.

No settings are imported and no django modules used.
see the source, for more detail.

combine with youcompleteme, would be more convenient!

About

A collection of utilities for navigating django projects in vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 72.2%
  • Vim Script 27.8%