vim script to simulate a TDD Bownling KATA with nodejs and mocha
Before running the Bolwing Kata script in vim, you will need to make sure that some components are installed.
``` sudo yum install vim ```
or
``` sudo apt-get install vim```
- refers to https://github.com/gmarik/vundle
- install vundle with the following command:
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
- add the following in your
~/.vimrc
file
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'snipMate'
Bundle 'mmozuras/snipmate-mocha'
filetype on
sudo npm install mocha -g
sudo npm install should -g
-
start vim in the BowlingKata-NodeJs-VIM folder
-
type the following vim commands:
:source bowlingKata.vim :call bownlingKata#All()
Et voilà!