Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding VIM plugins to Janus setup

I recently switched over to using Janus from a custom set of vim plugins and .vimrc. I'm really enjoying the setup, but one thing I'm missing is the automatic completion of blocks in Ruby.

For example, when I type:

def method <enter>

It would complete the block:

def method
  # cursor here
end

I was using some of Tim Pope's plugins and can't recall which one provided the functionality (Rails maybe?) Is there a way to get this functionality using Janus? Is there a reason why someone wouldn't want this? It seems really convenient to have.

like image 737
Peter Brown Avatar asked Jan 26 '11 17:01

Peter Brown


1 Answers

According to janus documentation documentation:

If you want to add additional Vim plugins you can do so by adding a ~/.janus.rake like so:

vim_plugin_task "zencoding", "git://github.com/mattn/zencoding-vim.git"
vim_plugin_task "minibufexpl", "git://github.com/fholgado/minibufexpl.vim.git"

ant then just run rake or run rake for the pluging you setup, on ~/.vim, for example:

rake zenconding
like image 121
Marcos Oliveira Avatar answered Sep 24 '22 22:09

Marcos Oliveira