Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix issue 75, by v0n

  • Loading branch information...
commit 919a9dad09a81c431bacaa7f906ec4ad9c677239 1 parent 4689246
@MarcWeber authored
Showing with 19 additions and 14 deletions.
  1. +19 −14 doc/vim-addon-manager-getting-started.txt
View
33 doc/vim-addon-manager-getting-started.txt
@@ -120,19 +120,24 @@ recommended setup ~
" to fetch VAM, VAM-known-repositories and the listed plugins
" without having to install curl, 7-zip and git tools first
" -> BUG [4] (git-less installation)
- if !filereadable(a:vam_install_path.'/vim-addon-manager/.git/config')
- \&& 1 == confirm("Clone VAM into ".a:vam_install_path."?","&Y\n&N")
- " I'm sorry having to add this reminder. Eventually it'll pay off.
- call confirm("Remind yourself that most plugins ship with ".
- \"documentation (README*, doc/*.txt). It is your ".
- \"first source of knowledge. If you can't find ".
- \"the info you're looking for in reasonable ".
- \"time ask maintainers to improve documentation")
- call mkdir(a:vam_install_path, 'p')
- execute '!git clone --depth=1 git://github.com/MarcWeber/vim-addon-manager '.shellescape(a:vam_install_path, 1).'/vim-addon-manager'
- " VAM runs helptags automatically when you install or update
- " plugins
- exec 'helptags '.fnameescape(a:vam_install_path.'/vim-addon-manager/doc')
+ let is_installed_c = "isdirectory(a:vam_install_path.'/vim-addon-manager/autoload')"
+ if eval(is_installed_c)
+ return 1
+ else
+ if 1 == confirm("Clone VAM into ".a:vam_install_path."?","&Y\n&N")
+ " I'm sorry having to add this reminder. Eventually it'll pay off.
+ call confirm("Remind yourself that most plugins ship with ".
+ \"documentation (README*, doc/*.txt). It is your ".
+ \"first source of knowledge. If you can't find ".
+ \"the info you're looking for in reasonable ".
+ \"time ask maintainers to improve documentation")
+ call mkdir(a:vam_install_path, 'p')
+ execute '!git clone --depth=1 git://github.com/MarcWeber/vim-addon-manager '.shellescape(a:vam_install_path, 1).'/vim-addon-manager'
+ " VAM runs helptags automatically when you install or update
+ " plugins
+ exec 'helptags '.fnameescape(a:vam_install_path.'/vim-addon-manager/doc')
+ endif
+ return eval(is_installed_c)
endif
endf
@@ -147,7 +152,7 @@ recommended setup ~
" VAM install location:
let vam_install_path = expand('$HOME') . '/.vim/vim-addons'
- call EnsureVamIsOnDisk(vam_install_path)
+ if !EnsureVamIsOnDisk(vam_install_path) | echoe "NO VAM FOUND!" | return | endif
exec 'set runtimepath+='.vam_install_path.'/vim-addon-manager'
" Tell VAM which plugins to fetch & load:
Please sign in to comment.
Something went wrong with that request. Please try again.