getscriptPlugin.vim 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. " ---------------------------------------------------------------------
  2. " getscriptPlugin.vim
  3. " Author: Charles E. Campbell
  4. " Date: Nov 29, 2013
  5. " Installing: :help glvs-install
  6. " Usage: :help glvs
  7. "
  8. " GetLatestVimScripts: 642 1 :AutoInstall: getscript.vim
  9. "
  10. " (Rom 15:11 WEB) Again, "Praise the Lord, all you Gentiles! Let
  11. " all the peoples praise Him."
  12. " ---------------------------------------------------------------------
  13. " Initialization: {{{1
  14. " if you're sourcing this file, surely you can't be
  15. " expecting vim to be in its vi-compatible mode
  16. if exists("g:loaded_getscriptPlugin")
  17. finish
  18. endif
  19. if &cp
  20. if &verbose
  21. echo "GetLatestVimScripts is not vi-compatible; not loaded (you need to set nocp)"
  22. endif
  23. finish
  24. endif
  25. let g:loaded_getscriptPlugin = "v36"
  26. let s:keepcpo = &cpo
  27. set cpo&vim
  28. " ---------------------------------------------------------------------
  29. " Public Interface: {{{1
  30. com! -nargs=0 GetLatestVimScripts call getscript#GetLatestVimScripts()
  31. com! -nargs=0 GetScripts call getscript#GetLatestVimScripts()
  32. sil! com -nargs=0 GLVS call getscript#GetLatestVimScripts()
  33. " ---------------------------------------------------------------------
  34. " Restore Options: {{{1
  35. let &cpo= s:keepcpo
  36. unlet s:keepcpo
  37. " ---------------------------------------------------------------------
  38. " vim: ts=8 sts=2 fdm=marker nowrap