vim_django : [UNMAINTAINED] Simplifies opening related files in Django projects
script karma |
Rating 10/4,
Downloaded by 1599 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Anders Schau Knatten |
|
script type |
utility |
|
description |
***THIS SCRIPT IS NOT MAINTAINED, AND PROBABLY BROKEN***
This script simplifies opening of related files in Django projects.
If you are editing a file in a Django project, vim_django will find the location of your template files and app files. In combination with the Command-T plugin: vimscript #3025, this makes it super-easy to open files related to the one you are currently editing.
Watch a demo on Viemo: http://vimeo.com/24394421 (1:24) (This only shows opening of template files, but files in the app itself can be opened in the same way)
Suggested mapping:
map <Leader>dt :VimDjangoCommandTTemplate<CR>
map <Leader>da :VimDjangoCommandTApp<CR>
If you put that line in your .vimrc, hitting "<Leader>dt" while working on a Django application will start CommandT in the template directory corresponding to the application. Hitting "<Leader>da will start CommandT in the app directory. ("<Leader>" is usually mapped as "\" or "," so try "\dt" or ",dt".)
If you have any questions, please send me an email at anders AT knatten DOT org |
|
install details |
***THIS SCRIPT IS NOT MAINTAINED, AND PROBABLY BROKEN***
Unpack in your .vim directory:
cd ~/.vim
tar zxf vim_django-<version>.tgz
The result should look like this:
~/.vim/plugin/vim_django.vim
~/.vim/python/vim_django/__init__.py
~/.vim/python/vim_django/test.py
~/.vim/python/vim_django/vim_django.py
You also need to install Command-T: http://www.vim.org/scripts/script.php?script_id=3025
(You can skip this if you don't want Command-T integration, but vim_django is pretty pointless without it. ) |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.217.19.195
|