RejectedSoftware Forums

Sign up

apply a little colour to your diet templates

If you are a vim user, the following might help for editing diet templates:

First install vim-pathogen, if you have not already:

mkdir -p ~/.vim/autoload ~/.vim/bundle
cd ~/.vim
[ -e vim-pathogen ] || git clone https://github.com/tpope/vim-pathogen
cd autoload
ln -sf ../vim-pathogen/autoload/pathogen.vim ./
grep -q 'call pathogen#infect' ~/.vimrc || echo 'call pathogen#infect()' >> ~/.vimrc



Then install vim-jade:

cd ~/.vim/bundle
[ -e vim-jade ] || git clone https://github.com/digitaltoad/vim-jade
cd vim-jade/ftdetect
grep -q '\*.dt' jade.vim || echo 'autocmd BufNewFile,BufReadPost *.dt set filetype=jade' >> jade.vim

Enjoy colourful diet template files :-)

Re: apply a little colour to your diet templates

Such things would fit better in a wiki. Is there any for vibe?

Re: apply a little colour to your diet templates

On Mon, 17 Dec 2012 11:41:52 GMT, Robert wrote:

Such things would fit better in a wiki. Is there any for vibe?

There is the github wiki, but it was not used until now. I just added a page with similar instructions for TextMate/Sublime Text. I'll also add a TODO item for adding a link to the vibed.org community page.

Re: apply a little colour to your diet templates

On Mon, 17 Dec 2012 13:18:19 GMT, Sönke Ludwig wrote:

On Mon, 17 Dec 2012 11:41:52 GMT, Robert wrote:

Such things would fit better in a wiki. Is there any for vibe?

There is the github wiki, but it was not used until now. I just added a page with similar instructions for TextMate/Sublime Text. I'll also add a TODO item for adding a link to the vibed.org community page.

Perfect!