sponsor Vim development Vim logo Vim Book Ad

django.vim : A simple compiler for using Django unittest with VIM

 script karma  Rating 0/0, Downloaded by 761  Comments, bugs, improvements  Vim wiki

created by
Alisue Lambda
 
script type
ftplugin
 
description
****************
django.vim
****************
:VERSION: 0.1.0

A simple compiler for executing Django Unittest on VIM. Useful to use with vim-makegreen_

See http://blog.staz.be/?post/2010/09/04/Python-unit-test-and-vim for find how to use it with vim-makegreen_

.. _vim-makegreen: https://github.com/reinh/vim-makegreen

 
install details
how to install
============================
use vundle_ or pathogen_ is recommended or simply extract to your vim directory

.. _vundle: https://github.com/gmarik/vundle
.. _pathogen: http://www.vim.org/scripts/script.php?script_id=2332

It is strongly recommended to use vim-localrc_ to configure. Create ``.local.vimrc`` in your
top level of django project directory as::

    " Use django unittest compiler
    compiler django

    " Optional
    " Run unittest with the current editing app
    nmap <Leader>t :call DjangoMakeGreen("%")
    " Run unittest with whole project
    nmap <Leader>T :call DjangoMakeGreen(".")

.. _vim-localrc: https://github.com/thinca/vim-localrc

how to use with vim-makegreen
==========================================================
Replace your keymap with::

    " Run unittest with the current editing app
    nmap <Leader>t :call DjangoMakeGreen("%")
    " Run unittest with whole project
    nmap <Leader>T :call DjangoMakeGreen(".")
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
django.vim.tar.gz 0.1.1 2012-02-21 7.0 Alisue Lambda Fix function issue
django.vim.tar.gz 0.1.0 2012-02-21 7.0 Alisue Lambda Initial upload
ip used for rating: 3.129.249.105

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github