From 038ec9531c89f84e3dc164d8b5efa9a11aec04f0 Mon Sep 17 00:00:00 2001 From: jason Date: Wed, 24 Jun 2015 13:09:21 -0600 Subject: Update vam settings --- vim/vimrc | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index edc111f..4e1757c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -52,6 +52,40 @@ else endif set runtimepath+=~/.vim/vim-addon-manager -call vam#ActivateAddons([ - \ 'github:jamessan/vim-gnupg']) - " \ 'github:scrooloose/nerdtree', + +filetype indent plugin on | syn on + +fun! SetupVAM() + let c = get(g:, 'vim_addon_manager', {}) + let g:vim_addon_manager = c + let c.plugin_root_dir = expand('$HOME', 1) . '/.vim/vim-addons' + + " Force your ~/.vim/after directory to be last in &rtp always: + " let g:vim_addon_manager.rtp_list_hook = 'vam#ForceUsersAfterDirectoriesToBeLast' + + " most used options you may want to use: + " let c.log_to_buf = 1 + " let c.auto_install = 0 + let &rtp.=(empty(&rtp)?'':',').c.plugin_root_dir.'/vim-addon-manager' + if !isdirectory(c.plugin_root_dir.'/vim-addon-manager/autoload') + execute '!git clone --depth=1 git://github.com/MarcWeber/vim-addon-manager ' + \ shellescape(c.plugin_root_dir.'/vim-addon-manager', 1) + endif + + " This provides the VAMActivate command, you could be passing plugin names, too + call vam#ActivateAddons([], {}) +endfun +call SetupVAM() + +" ACTIVATING PLUGINS + +" OPTION 1, use VAMActivate +VAMActivate github:scrooloose/nerdtree Gundo github:jmcantrell/vim-virtualenv bufexplorer.zip + +" OPTION 2: use call vam#ActivateAddons +" call vam#ActivateAddons([PLUGIN_NAME], {}) +" use to complete plugin names + +" OPTION 3: Create a file ~/.vim-srcipts putting a PLUGIN_NAME into each line +" See lazy loading plugins section in README.md for details +" call vam#Scripts('~/.vim-scripts', {'tag_regex': '.*'}) -- cgit v1.2.1