Skip to content

Commit

Permalink
Skipping plugins in ~/.janus.rake
Browse files Browse the repository at this point in the history
  • Loading branch information
lackac committed May 13, 2011
1 parent 137f4de commit 959d355
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.markdown
Expand Up @@ -62,6 +62,15 @@ If you want to add additional Vim plugins you can do so by adding a
vim_plugin_task "zencoding", "git://github.com/mattn/zencoding-vim.git" vim_plugin_task "zencoding", "git://github.com/mattn/zencoding-vim.git"
vim_plugin_task "minibufexpl", "git://github.com/fholgado/minibufexpl.vim.git" vim_plugin_task "minibufexpl", "git://github.com/fholgado/minibufexpl.vim.git"


If you do not wish to use one of the plugins Janus provides out of the
box you can have it skipped using the `skip_plugin_task` method in
`~/.janus.rake`:

skip_plugin_task "color-sampler"

**Note**: Skipping the plugin will only apply to installation. It won't
remove configurations or mappings Janus might have added for it.

## Updating to the latest version ## Updating to the latest version


To update to the latest version of the distribution, just run `rake` To update to the latest version of the distribution, just run `rake`
Expand Down
4 changes: 4 additions & 0 deletions Rakefile
Expand Up @@ -120,6 +120,10 @@ def vim_plugin_task(name, repo=nil)
task :default => name task :default => name
end end


def skip_vim_plugin(name)
Rake::Task[:default].prerequisites.delete(name)
end

vim_plugin_task "ack.vim", "git://github.com/mileszs/ack.vim.git" vim_plugin_task "ack.vim", "git://github.com/mileszs/ack.vim.git"
vim_plugin_task "color-sampler", "git://github.com/vim-scripts/Color-Sampler-Pack.git" vim_plugin_task "color-sampler", "git://github.com/vim-scripts/Color-Sampler-Pack.git"
vim_plugin_task "conque", "http://conque.googlecode.com/files/conque_1.1.tar.gz" vim_plugin_task "conque", "http://conque.googlecode.com/files/conque_1.1.tar.gz"
Expand Down

0 comments on commit 959d355

Please sign in to comment.