aboutsummaryrefslogtreecommitdiffstats
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc40
1 files changed, 37 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index edc111f..4e1757c 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -52,6 +52,40 @@ else
52endif 52endif
53 53
54set runtimepath+=~/.vim/vim-addon-manager 54set runtimepath+=~/.vim/vim-addon-manager
55call vam#ActivateAddons([ 55
56 \ 'github:jamessan/vim-gnupg']) 56filetype indent plugin on | syn on
57 " \ 'github:scrooloose/nerdtree', 57
58fun! SetupVAM()
59 let c = get(g:, 'vim_addon_manager', {})
60 let g:vim_addon_manager = c
61 let c.plugin_root_dir = expand('$HOME', 1) . '/.vim/vim-addons'
62
63 " Force your ~/.vim/after directory to be last in &rtp always:
64 " let g:vim_addon_manager.rtp_list_hook = 'vam#ForceUsersAfterDirectoriesToBeLast'
65
66 " most used options you may want to use:
67 " let c.log_to_buf = 1
68 " let c.auto_install = 0
69 let &rtp.=(empty(&rtp)?'':',').c.plugin_root_dir.'/vim-addon-manager'
70 if !isdirectory(c.plugin_root_dir.'/vim-addon-manager/autoload')
71 execute '!git clone --depth=1 git://github.com/MarcWeber/vim-addon-manager '
72 \ shellescape(c.plugin_root_dir.'/vim-addon-manager', 1)
73 endif
74
75 " This provides the VAMActivate command, you could be passing plugin names, too
76 call vam#ActivateAddons([], {})
77endfun
78call SetupVAM()
79
80" ACTIVATING PLUGINS
81
82" OPTION 1, use VAMActivate
83VAMActivate github:scrooloose/nerdtree Gundo github:jmcantrell/vim-virtualenv bufexplorer.zip
84
85" OPTION 2: use call vam#ActivateAddons
86" call vam#ActivateAddons([PLUGIN_NAME], {})
87" use <c-x><c-p> to complete plugin names
88
89" OPTION 3: Create a file ~/.vim-srcipts putting a PLUGIN_NAME into each line
90" See lazy loading plugins section in README.md for details
91" call vam#Scripts('~/.vim-scripts', {'tag_regex': '.*'})