diff options
| author | jason | 2015-06-24 13:09:21 -0600 |
|---|---|---|
| committer | jason | 2015-06-24 13:09:21 -0600 |
| commit | 038ec9531c89f84e3dc164d8b5efa9a11aec04f0 (patch) | |
| tree | 0af3b41e71cb9465e187c0e702389c82b91568b4 /vim/vimrc | |
| parent | 54a3b4fc0733f2f3acbd1247d7c13146f6f3189b (diff) | |
| download | dotfiles-038ec9531c89f84e3dc164d8b5efa9a11aec04f0.tar.gz dotfiles-038ec9531c89f84e3dc164d8b5efa9a11aec04f0.zip | |
Update vam settings
Diffstat (limited to 'vim/vimrc')
| -rw-r--r-- | vim/vimrc | 40 |
1 files changed, 37 insertions, 3 deletions
| @@ -52,6 +52,40 @@ else | |||
| 52 | endif | 52 | endif |
| 53 | 53 | ||
| 54 | set runtimepath+=~/.vim/vim-addon-manager | 54 | set runtimepath+=~/.vim/vim-addon-manager |
| 55 | call vam#ActivateAddons([ | 55 | |
| 56 | \ 'github:jamessan/vim-gnupg']) | 56 | filetype indent plugin on | syn on |
| 57 | " \ 'github:scrooloose/nerdtree', | 57 | |
| 58 | fun! 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([], {}) | ||
| 77 | endfun | ||
| 78 | call SetupVAM() | ||
| 79 | |||
| 80 | " ACTIVATING PLUGINS | ||
| 81 | |||
| 82 | " OPTION 1, use VAMActivate | ||
| 83 | VAMActivate 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': '.*'}) | ||