Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add minimal .vimrc versions because the commented got that bloated

Make the less important lines take only one line
  • Loading branch information...
commit 870db62fd1abe4f325afde0ebe13adcddff167d2 1 parent e621b4e
@MarcWeber authored
Showing with 21 additions and 3 deletions.
  1. +21 −3 doc/vim-addon-manager-getting-started.txt
View
24 doc/vim-addon-manager-getting-started.txt
@@ -118,7 +118,12 @@ recommended setup ~
2) Read the comments carefully. They help you getting started. Then you can
remove them.
3) Add addon names to the ActivateAddons call, start Vim. That’s all.
+
+commented version ~
>
+ " put this line first in ~/.vimrc
+ set nocompatible | filetype indent plugin on | syn on
+
fun! EnsureVamIsOnDisk(vam_install_path)
" windows users may want to use http://mawercer.de/~marc/vam/index.php
" to fetch VAM, VAM-known-repositories and the listed plugins
@@ -160,9 +165,7 @@ recommended setup ~
" VAM install location:
let vam_install_path = expand('$HOME') . '/.vim/vim-addons'
if !EnsureVamIsOnDisk(vam_install_path)
- echohl ErrorMsg
- echomsg "No VAM found!"
- echohl NONE
+ echohl ErrorMsg | echomsg "No VAM found!" | echohl NONE
return
endif
exec 'set runtimepath+='.vam_install_path.'/vim-addon-manager'
@@ -193,6 +196,21 @@ recommended setup ~
" See BUGS sections below [*]
" Vim 7.0 users see BUGS section [3]
+minimal version ~
+>
+ " put this line first in ~/.vimrc
+ set nocompatible | filetype indent plugin on | syn on
+
+ fun SetupVAM()
+ let vam_install_path = expand('$HOME') . '/.vim/vim-addons'
+ exec 'set rtp+='.vam_install_path.'/vim-addon-manager'
+ " let g:vim_addon_manager = { your config here see "commented version" example and help
+ if !isdirectory(vam_install_path.'/vim-addon-manager/autoload')
+ execute '!git clone --depth=1 git://github.com/MarcWeber/vim-addon-manager '.shellescape(vam_install_path, 1).'/vim-addon-manager'
+ endif
+ call vam#ActivateAddons([the plugin names], {'auto_install' : 0})
+ endf
+ call SetupVAM()
NOTES: ~
Please sign in to comment.
Something went wrong with that request. Please try again.