1 Star 0 Fork 0

hilarryxu/vimdoc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pi_getscript.html 54.42 KB
一键复制 编辑 原始数据 按行查看 历史
hilarryxu 提交于 2017-08-15 10:58 . Init repo
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>pi_getscript - Vim Documentation</title>
<meta name="Generator" content="Vim/8.0">
<meta name="plugin-version" content="vim8.0">
<meta name="syntax" content="help">
<meta name="settings" content="no_pre,use_css,expand_tabs">
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="jquery.min.js" type="text/javascript"></script>
<script src="mark-current-page.js" type="text/javascript"></script>
</head>
<body>
<header>
<div class="header">
<a href="http://vim-jp.org/">vim-jp</a>
/ <a href="http://vim-jp.org/vimdoc-en/">vimdoc-en</a>
/ pi_getscript<br />
<a name="top"></a><h1>pi_getscript - Vim Documentation</h1>
<a href="index.html">Return to main</a>
<span class="EnglishJapaneseLink">
<span class="CurrentLanguage">English</span>
</span>
</div>
</header>
<nav>
<dl>
<dt>BASIC</dt>
<dd><ul>
<li><a href="quickref.html">quickref</a></li>
<li><a href="sponsor.html">sponsor</a></li>
</ul></dd>
<dt>USER MANUAL</dt>
<dd><ul>
<li><a href="usr_toc.html">usr_toc</a></li>
</ul></dd>
<dt>Getting Started</dt>
<dd><ul>
<li><a href="usr_01.html">usr_01</a></li>
<li><a href="usr_02.html">usr_02</a></li>
<li><a href="usr_03.html">usr_03</a></li>
<li><a href="usr_04.html">usr_04</a></li>
<li><a href="usr_05.html">usr_05</a></li>
<li><a href="usr_06.html">usr_06</a></li>
<li><a href="usr_07.html">usr_07</a></li>
<li><a href="usr_08.html">usr_08</a></li>
<li><a href="usr_09.html">usr_09</a></li>
<li><a href="usr_10.html">usr_10</a></li>
<li><a href="usr_11.html">usr_11</a></li>
<li><a href="usr_12.html">usr_12</a></li>
</ul></dd>
<dt>Editing Effectively</dt>
<dd><ul>
<li><a href="usr_20.html">usr_20</a></li>
<li><a href="usr_21.html">usr_21</a></li>
<li><a href="usr_22.html">usr_22</a></li>
<li><a href="usr_23.html">usr_23</a></li>
<li><a href="usr_24.html">usr_24</a></li>
<li><a href="usr_25.html">usr_25</a></li>
<li><a href="usr_26.html">usr_26</a></li>
<li><a href="usr_27.html">usr_27</a></li>
<li><a href="usr_28.html">usr_28</a></li>
<li><a href="usr_29.html">usr_29</a></li>
<li><a href="usr_30.html">usr_30</a></li>
<li><a href="usr_31.html">usr_31</a></li>
<li><a href="usr_32.html">usr_32</a></li>
</ul></dd>
<dt>Tuning Vim</dt>
<dd><ul>
<li><a href="usr_40.html">usr_40</a></li>
<li><a href="usr_41.html">usr_41</a></li>
<li><a href="usr_42.html">usr_42</a></li>
<li><a href="usr_43.html">usr_43</a></li>
<li><a href="usr_44.html">usr_44</a></li>
<li><a href="usr_45.html">usr_45</a></li>
</ul></dd>
<dt>Making Vim Run</dt>
<dd><ul>
<li><a href="usr_90.html">usr_90</a></li>
</ul></dd>
<dt>General subjects</dt>
<dd><ul>
<li><a href="intro.html">intro</a></li>
<li><a href="index.html">help</a></li>
<li><a href="helphelp.html">helphelp</a></li>
<li><a href="vimindex.html">index</a></li>
<li><a href="tags.html">tags</a></li>
<li><a href="howto.html">howto</a></li>
<li><a href="tips.html">tips</a></li>
<li><a href="message.html">message</a></li>
<li><a href="quotes.html">quotes</a></li>
<li><a href="todo.html">todo</a></li>
<li><a href="debug.html">debug</a></li>
<li><a href="develop.html">develop</a></li>
<li><a href="uganda.html">uganda</a></li>
</ul></dd>
<dt>Basic editing</dt>
<dd><ul>
<li><a href="starting.html">starting</a></li>
<li><a href="editing.html">editing</a></li>
<li><a href="motion.html">motion</a></li>
<li><a href="scroll.html">scroll</a></li>
<li><a href="insert.html">insert</a></li>
<li><a href="change.html">change</a></li>
<li><a href="indent.html">indent</a></li>
<li><a href="undo.html">undo</a></li>
<li><a href="repeat.html">repeat</a></li>
<li><a href="visual.html">visual</a></li>
<li><a href="various.html">various</a></li>
<li><a href="recover.html">recover</a></li>
</ul></dd>
<dt>Advanced editing</dt>
<dd><ul>
<li><a href="cmdline.html">cmdline</a></li>
<li><a href="options.html">options</a></li>
<li><a href="pattern.html">pattern</a></li>
<li><a href="map.html">map</a></li>
<li><a href="tagsrch.html">tagsrch</a></li>
<li><a href="quickfix.html">quickfix</a></li>
<li><a href="windows.html">windows</a></li>
<li><a href="tabpage.html">tabpage</a></li>
<li><a href="syntax.html">syntax</a></li>
<li><a href="spell.html">spell</a></li>
<li><a href="diff.html">diff</a></li>
<li><a href="autocmd.html">autocmd</a></li>
<li><a href="filetype.html">filetype</a></li>
<li><a href="eval.html">eval</a></li>
<li><a href="channel.html">channel</a></li>
<li><a href="fold.html">fold</a></li>
</ul></dd>
<dt>Special issues</dt>
<dd><ul>
<li><a href="print.html">print</a></li>
<li><a href="remote.html">remote</a></li>
<li><a href="term.html">term</a></li>
<li><a href="digraph.html">digraph</a></li>
<li><a href="mbyte.html">mbyte</a></li>
<li><a href="mlang.html">mlang</a></li>
<li><a href="arabic.html">arabic</a></li>
<li><a href="farsi.html">farsi</a></li>
<li><a href="hebrew.html">hebrew</a></li>
<li><a href="russian.html">russian</a></li>
<li><a href="ft_ada.html">ft_ada</a></li>
<li><a href="ft_sql.html">ft_sql</a></li>
<li><a href="hangulin.html">hangulin</a></li>
<li><a href="rileft.html">rileft</a></li>
</ul></dd>
<dt>GUI</dt>
<dd><ul>
<li><a href="gui.html">gui</a></li>
<li><a href="gui_w32.html">gui_w32</a></li>
<li><a href="gui_x11.html">gui_x11</a></li>
</ul></dd>
<dt>Interfaces</dt>
<dd><ul>
<li><a href="if_cscop.html">if_cscop</a></li>
<li><a href="if_lua.html">if_lua</a></li>
<li><a href="if_mzsch.html">if_mzsch</a></li>
<li><a href="if_perl.html">if_perl</a></li>
<li><a href="if_pyth.html">if_pyth</a></li>
<li><a href="if_tcl.html">if_tcl</a></li>
<li><a href="if_ole.html">if_ole</a></li>
<li><a href="if_ruby.html">if_ruby</a></li>
<li><a href="debugger.html">debugger</a></li>
<li><a href="workshop.html">workshop</a></li>
<li><a href="netbeans.html">netbeans</a></li>
<li><a href="sign.html">sign</a></li>
</ul></dd>
<dt>Versions</dt>
<dd><ul>
<li><a href="vi_diff.html">vi_diff</a></li>
<li><a href="version4.html">version4</a></li>
<li><a href="version5.html">version5</a></li>
<li><a href="version6.html">version6</a></li>
<li><a href="version7.html">version7</a></li>
<li><a href="version8.html">version8</a></li>
</ul></dd>
<dt>Remarks about specific systems</dt>
<dd><ul>
<li><a href="os_390.html">os_390</a></li>
<li><a href="os_amiga.html">os_amiga</a></li>
<li><a href="os_beos.html">os_beos</a></li>
<li><a href="os_dos.html">os_dos</a></li>
<li><a href="os_mac.html">os_mac</a></li>
<li><a href="os_mint.html">os_mint</a></li>
<li><a href="os_msdos.html">os_msdos</a></li>
<li><a href="os_os2.html">os_os2</a></li>
<li><a href="os_qnx.html">os_qnx</a></li>
<li><a href="os_risc.html">os_risc</a></li>
<li><a href="os_unix.html">os_unix</a></li>
<li><a href="os_vms.html">os_vms</a></li>
<li><a href="os_win32.html">os_win32</a></li>
</ul></dd>
<dt>Standard plugins</dt>
<dd><ul>
<li><a href="pi_getscript.html">pi_getscript</a></li>
<li><a href="pi_gzip.html">pi_gzip</a></li>
<li><a href="pi_logipat.html">pi_logipat</a></li>
<li><a href="pi_netrw.html">pi_netrw</a></li>
<li><a href="pi_paren.html">pi_paren</a></li>
<li><a href="pi_tar.html">pi_tar</a></li>
<li><a href="pi_vimball.html">pi_vimball</a></li>
<li><a href="pi_zip.html">pi_zip</a></li>
</ul></dd>
<dt>Filetype plugins</dt>
<dd><ul>
<li><a href="pi_spec.html">pi_spec</a></li>
</ul></dd>
<dt>Others</dt>
<dd><ul>
<li><a href="vim_faq.html">vim_faq</a></li>
</ul></dd>
</dl>
</nav>
<article class="Vimdoc VimdocJa">
<div id='vimCodeElement'>
<a class="Constant" href="pi_getscript.html" name="pi_getscript.txt">pi_getscript.txt</a>&nbsp;&nbsp;For&nbsp;<span class="Identifier">Vim version 7.0.</span>&nbsp;&nbsp;Last change: 2017 Aug 01<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GETSCRIPT REFERENCE MANUAL&nbsp;&nbsp;by Charles E. Campbell</div>
<br>
Authors:&nbsp;&nbsp;Charles E. Campbell&nbsp;&nbsp;&lt;NdrOchip@ScampbellPfamilyA.Mbiz&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(remove NOSPAM from the email address)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#GetLatestVimScripts-copyright" name="GetLatestVimScripts-copyright">GetLatestVimScripts-copyright</a><br>
Copyright: (c) 2004-2012 by Charles E. Campbell&nbsp;<a class="Constant" href="pi_getscript.html#glvs-copyright" name="glvs-copyright">glvs-copyright</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The VIM LICENSE (see&nbsp;<a class="Identifier" href="uganda.html#copyright">copyright</a>) applies to the files in this<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;package, including getscriptPlugin.vim, getscript.vim,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GetLatestVimScripts.dist, and pi_getscript.txt, except use &quot;getscript&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;instead of &quot;Vim&quot;.&nbsp;&nbsp;Like anything else that's free, getscript and its<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;associated files are provided *as is* and comes with no warranty of<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;any kind, either expressed or implied.&nbsp;&nbsp;No guarantees of<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;merchantability.&nbsp;&nbsp;No guarantees of suitability for any purpose.&nbsp;&nbsp;By<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;using this plugin, you agree that in no event will the copyright<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;holder be liable for any damages resulting from the use of this<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;software. Use at your own risk!<br>
<br>
Getscript is a plugin that simplifies retrieval of the latest versions of the<br>
scripts that you yourself use!&nbsp;&nbsp;Typing&nbsp;<a class="Identifier" href="pi_getscript.html#:GLVS">:GLVS</a>&nbsp;will invoke getscript; it will<br>
then use the &lt;GetLatestVimScripts.dat&gt; (see&nbsp;<a class="Identifier" href="pi_getscript.html#GetLatestVimScripts_dat">GetLatestVimScripts_dat</a>) file to<br>
get the latest versions of scripts listed therein from&nbsp;<span class="Constant"><a href="http://vim.sf.net/">http://vim.sf.net/</a></span>.<br>
<br>
<span class="PreProc">==============================================================================</span><br>
1. Contents&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#glvs-contents" name="glvs-contents">glvs-contents</a>&nbsp;<a class="Constant" href="pi_getscript.html#glvs" name="glvs">glvs</a>&nbsp;<a class="Constant" href="pi_getscript.html#getscript" name="getscript">getscript</a><br>
<span class="Statement">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><a class="Constant" href="pi_getscript.html#GetLatestVimScripts" name="GetLatestVimScripts">GetLatestVimScripts</a><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. Contents........................................:&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-contents">glvs-contents</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2. GetLatestVimScripts -- Getting Started..........:&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-install">glvs-install</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3. GetLatestVimScripts Usage.......................:&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-usage">glvs-usage</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4. GetLatestVimScripts Data File...................:&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-data">glvs-data</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5. GetLatestVimScripts Friendly Plugins............:&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-plugins">glvs-plugins</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6. GetLatestVimScripts AutoInstall.................:&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-autoinstall">glvs-autoinstall</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7. GetLatestViMScripts Options.....................:&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-options">glvs-options</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8. GetLatestVimScripts Algorithm...................:&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-alg">glvs-alg</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9. GetLatestVimScripts History.....................:&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-hist">glvs-hist</a><br>
<br>
<br>
<span class="PreProc">==============================================================================</span><br>
2. GetLatestVimScripts -- Getting Started&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#getscript-start" name="getscript-start">getscript-start</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#getlatestvimscripts-install" name="getlatestvimscripts-install">getlatestvimscripts-install</a><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VERSION FROM VIM DISTRIBUTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#glvs-dist-install" name="glvs-dist-install">glvs-dist-install</a><br>
<br>
Vim 7.0 does not include the GetLatestVimScripts.dist file which<br>
serves as an example and a template.&nbsp;&nbsp;So, you'll need to create<br>
your own!&nbsp;&nbsp;See&nbsp;<a class="Identifier" href="pi_getscript.html#GetLatestVimScripts_dat">GetLatestVimScripts_dat</a>.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VERSION FROM VIM SF NET&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#glvs-install" name="glvs-install">glvs-install</a><br>
<br>
<span class="Todo">NOTE</span>: The last step, that of renaming/moving the GetLatestVimScripts.dist<br>
file, is for those who have just downloaded GetLatestVimScripts.tar.bz2 for<br>
the first time.<br>
<br>
The GetLatestVimScripts.dist file serves as an example and a template for your<br>
own personal list.&nbsp;&nbsp;Feel free to remove all the scripts mentioned within it;<br>
the &quot;important&quot; part of it is the first two lines.<br>
<br>
Your computer needs to have wget or curl for GetLatestVimScripts to do its work.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. if compressed:&nbsp;&nbsp;gunzip getscript.vba.gz<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2. Unix:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vim getscript.vba<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:so %<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:q<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cd ~/.vim/GetLatest<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mv GetLatestVimScripts.dist GetLatestVimScripts.dat<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(edit GetLatestVimScripts.dat to install your own personal<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list of desired plugins -- see&nbsp;<a class="Identifier" href="pi_getscript.html#GetLatestVimScripts_dat">GetLatestVimScripts_dat</a>)<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3. Windows:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vim getscript.vba<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:so %<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:q<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cd **path-to-vimfiles**/GetLatest<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mv GetLatestVimScripts.dist GetLatestVimScripts.dat<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(edit GetLatestVimScripts.dat to install your own personal<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list of desired plugins -- see&nbsp;<a class="Identifier" href="pi_getscript.html#GetLatestVimScripts_dat">GetLatestVimScripts_dat</a>)<br>
<br>
<br>
<span class="PreProc">==============================================================================</span><br>
3. GetLatestVimScripts Usage&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#glvs-usage" name="glvs-usage">glvs-usage</a>&nbsp;<a class="Constant" href="pi_getscript.html#:GLVS" name=":GLVS">:GLVS</a><br>
<br>
Unless it has been defined elsewhere,<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:GLVS</div>
<br>
will invoke GetLatestVimScripts().&nbsp;&nbsp;If some other plugin has defined that<br>
command, then you may type<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:GetLatestVimScripts</div>
<br>
The script will attempt to update and, if permitted, will automatically<br>
install scripts from&nbsp;<span class="Constant"><a href="http://vim.sourceforge.net/">http://vim.sourceforge.net/</a></span>.&nbsp;&nbsp;To do so it will peruse a<br>
file,<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.vim/GetLatest/GetLatestVimScripts.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(unix)</div>
<br>
or<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;..wherever..\vimfiles\GetLatest\GetLatestVimScripts.dat&nbsp;&nbsp; (windows)</div>
(see&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-data">glvs-data</a>), and examine plugins in your [.vim|vimfiles]/plugin<br>
directory (see&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-plugins">glvs-plugins</a>).<br>
<br>
Scripts which have been downloaded will appear in the<br>
~/.vim/GetLatest (unix) or ..wherever..\vimfiles\GetLatest (windows)<br>
subdirectory.&nbsp;&nbsp;GetLatestVimScripts will attempt to automatically<br>
install them if you have the following line in your &lt;.vimrc&gt;:<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;let g:GetLatestVimScripts_allowautoinstall=1</div>
<br>
The &lt;GetLatestVimScripts.dat&gt; file will be automatically be updated to<br>
reflect the latest version of script(s) so downloaded.<br>
(also see&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-options">glvs-options</a>)<br>
<br>
<br>
<span class="PreProc">==============================================================================</span><br>
4. GetLatestVimScripts Data File&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#getscript-data" name="getscript-data">getscript-data</a>&nbsp;<a class="Constant" href="pi_getscript.html#glvs-data" name="glvs-data">glvs-data</a><br>
<span class="Statement">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><a class="Constant" href="pi_getscript.html#:GetLatestVimScripts_dat" name=":GetLatestVimScripts_dat">:GetLatestVimScripts_dat</a><br>
The data file &lt;GetLatestVimScripts.dat&gt; must have for its first two lines<br>
the following text:<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ScriptID SourceID Filename<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--------------------------</div>
<br>
Following those two lines are three columns; the first two are numeric<br>
followed by a text column.&nbsp;&nbsp;The GetLatest/GetLatestVimScripts.dist file<br>
contains an example of such a data file.&nbsp;&nbsp;Anything following a #... is<br>
ignored, so you may embed comments in the file.<br>
<br>
The first number on each line gives the script's ScriptID.&nbsp;&nbsp;When you're about<br>
to use a web browser to look at scripts on&nbsp;<span class="Constant"><a href="http://vim.sf.net/">http://vim.sf.net/</a></span>, just before you<br>
click on the script's link, you'll see a line resembling<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Constant"><a href="http://vim.sourceforge.net/scripts/script.php?script_id=40">http://vim.sourceforge.net/scripts/script.php?script_id=40</a></span><br>
<br>
The &quot;40&quot; happens to be a ScriptID that GetLatestVimScripts needs to<br>
download the associated page, and is assigned by vim.sf.net itself<br>
during initial uploading of the plugin.<br>
<br>
The second number on each line gives the script's SourceID.&nbsp;&nbsp;The SourceID<br>
records the count of uploaded scripts as determined by vim.sf.net; hence it<br>
serves to indicate &quot;when&quot; a script was uploaded.&nbsp;&nbsp;Setting the SourceID to 1<br>
insures that GetLatestVimScripts will assume that the script it has is<br>
out-of-date.<br>
<br>
The SourceID is extracted by GetLatestVimScripts from the script's page on<br>
vim.sf.net; whenever it is greater than the one stored in the<br>
GetLatestVimScripts.dat file, the script will be downloaded<br>
(see&nbsp;<a class="Identifier" href="pi_getscript.html#GetLatestVimScripts_dat">GetLatestVimScripts_dat</a>).<br>
<br>
If your script's author has included a special comment line in his/her plugin,<br>
the plugin itself will be used by GetLatestVimScripts to build your<br>
&lt;GetLatestVimScripts.dat&gt; file, including any dependencies on other scripts it<br>
may have.&nbsp;&nbsp;As an example, consider:<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot; GetLatestVimScripts: 884&nbsp;&nbsp;1 :AutoInstall: AutoAlign.vim</div>
<br>
This comment line tells getscript.vim to check vimscript #884 and that the<br>
script is automatically installable.&nbsp;&nbsp;Getscript will also use this line to<br>
help build the GetLatestVimScripts.dat file, by including a line such as:<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;884 1 :AutoInstall: AutoAlign.vim</div>
<br>
assuming that such a line isn't already in GetLatestVimScripts.dat file.<br>
See&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-plugins">glvs-plugins</a>&nbsp;for more.&nbsp;&nbsp;Thus, GetLatestVimScripts thus provides a<br>
comprehensive ability to keep your plugins up-to-date!<br>
<br>
In summary:<br>
<br>
<span class="Statement">&nbsp;&nbsp;</span>* Optionally tell getscript that it is allowed to build/append a<br>
&nbsp;&nbsp;&nbsp;&nbsp;GetLatestVimScripts.dat file based upon already installed plugins:<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;let g:GetLatestVimScripts_allowautoinstall=1</div>
<br>
<span class="Statement">&nbsp;&nbsp;</span>* A line such as<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot; GetLatestVimScripts: 884&nbsp;&nbsp;1 :AutoInstall: AutoAlign.vim</div>
&nbsp;&nbsp;&nbsp; in an already-downloaded plugin constitutes the concurrence of the<br>
&nbsp;&nbsp;&nbsp;&nbsp;plugin author that getscript may do AutoInstall.&nbsp;&nbsp;Not all plugins<br>
&nbsp;&nbsp;&nbsp;&nbsp;may be AutoInstall-able, and the plugin's author is best situated<br>
&nbsp;&nbsp;&nbsp;&nbsp;to know whether or not his/her plugin will AutoInstall properly.<br>
<br>
<span class="Statement">&nbsp;&nbsp;</span>* A line such as<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;884 1 :AutoInstall: AutoAlign.vim</div>
&nbsp;&nbsp;&nbsp; in your GetLatestVimScripts.dat file constitutes your permission<br>
&nbsp;&nbsp;&nbsp;&nbsp;to getscript to do AutoInstall.&nbsp;&nbsp;AutoInstall requires both your<br>
&nbsp;&nbsp;&nbsp;&nbsp;and the plugin author's permission.&nbsp;&nbsp;See&nbsp;<a class="Identifier" href="pi_getscript.html#GetLatestVimScripts_dat">GetLatestVimScripts_dat</a>.<br>
<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#GetLatestVimScripts_dat" name="GetLatestVimScripts_dat">GetLatestVimScripts_dat</a><br>
As an example of a &lt;GetLatestVimScripts.dat&gt; file:<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;ScriptID SourceID Filename<br>
&nbsp;&nbsp;&nbsp;&nbsp;--------------------------<br>
&nbsp;&nbsp;&nbsp;&nbsp;294 1 :AutoInstall: Align.vim<br>
&nbsp;&nbsp;&nbsp;&nbsp;120 2 Decho.vim<br>
&nbsp;&nbsp;&nbsp;&nbsp; 40 3 DrawIt.tar.gz<br>
&nbsp;&nbsp;&nbsp;&nbsp;451 4 EasyAccents.vim<br>
&nbsp;&nbsp;&nbsp;&nbsp;195 5 engspchk.vim<br>
&nbsp;&nbsp;&nbsp;&nbsp;642 6 GetLatestVimScripts.vim<br>
&nbsp;&nbsp;&nbsp;&nbsp;489 7 Manpageview.vim</div>
<br>
<span class="Todo">Note</span>: the first two lines are required, but essentially act as comments.<br>
<br>
<br>
<span class="PreProc">==============================================================================</span><br>
5. GetLatestVimScripts Friendly Plugins&nbsp;<a class="Constant" href="pi_getscript.html#getscript-plugins" name="getscript-plugins">getscript-plugins</a>&nbsp;<a class="Constant" href="pi_getscript.html#glvs-plugins" name="glvs-plugins">glvs-plugins</a><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="PreProc">(this section is for plugin authors)</span><br>
<br>
If a plugin author includes the following comment anywhere in their plugin,<br>
GetLatestVimScripts will find it and use it to automatically build the user's<br>
GetLatestVimScripts.dat files:<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; src_id<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot; GetLatestVimScripts: ### ### yourscriptname<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scriptid</div>
<br>
As an author, you should include such a line in to refer to your own script<br>
plus any additional lines describing any plugin dependencies it may have.<br>
Same format, of course!<br>
<br>
If your command is auto-installable (see&nbsp;<a class="Identifier" href="pi_getscript.html#glvs-autoinstall">glvs-autoinstall</a>), and most scripts<br>
are, then you may include :AutoInstall: just before &quot;yourscriptname&quot;:<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; src_id<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot; GetLatestVimScripts: ### ### :AutoInstall: yourscriptname<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scriptid</div>
<br>
<span class="Todo">NOTE</span><span class="PreProc">: The :AutoInstall: feature requires both the plugin author's and</span><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="PreProc">the user's permission to operate!</span><br>
<br>
GetLatestVimScripts commands for those scripts are then appended, if not<br>
already present, to the user's GetLatest/GetLatestVimScripts.dat file.&nbsp;&nbsp;It is<br>
a relatively painless way to automate the acquisition of any scripts your<br>
plugins depend upon.<br>
<br>
Now, as an author, you probably don't want GetLatestVimScripts to download<br>
your own scripts atop your own copy, thereby overwriting your not-yet-released<br>
hard work.&nbsp;&nbsp;GetLatestVimScripts provides a solution for this:&nbsp;&nbsp;put<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 0 yourscriptname</div>
<br>
into your &lt;GetLatestVimScripts.dat&gt; file and GetLatestVimScripts will skip<br>
examining the &quot;yourscriptname&quot; scripts for those GetLatestVimScripts comment<br>
lines.&nbsp;&nbsp;As a result, those lines won't be inadvertently installed into your<br>
&lt;GetLatestVimScripts.dat&gt; file and subsequently used to download your own<br>
scripts.&nbsp;&nbsp;This is especially important to do if you've included the<br>
:AutoInstall: option.<br>
<br>
Be certain to use the same &quot;yourscriptname&quot; in the &quot;0 0 yourscriptname&quot; line<br>
as you've used in your GetLatestVimScripts comment!<br>
<br>
<br>
<span class="PreProc">==============================================================================</span><br>
6. GetLatestVimScripts AutoInstall&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#getscript-autoinstall" name="getscript-autoinstall">getscript-autoinstall</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#glvs-autoinstall" name="glvs-autoinstall">glvs-autoinstall</a><br>
<br>
GetLatestVimScripts now supports &quot;AutoInstall&quot;.&nbsp;&nbsp;Not all scripts are<br>
supportive of auto-install, as they may have special things you need to do to<br>
install them (please refer to the script's &quot;install&quot; directions).&nbsp;&nbsp;On the<br>
other hand, most scripts will be auto-installable.<br>
<br>
To let GetLatestVimScripts do an autoinstall, the data file's comment field<br>
should begin with (surrounding blanks are ignored):<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:AutoInstall:</div>
<br>
Both colons are needed, and it should begin the comment (yourscriptname)<br>
field.<br>
<br>
One may prevent any autoinstalling by putting the following line in your<br>
&lt;.vimrc&gt;:<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;let g:GetLatestVimScripts_allowautoinstall= 0</div>
<br>
With :AutoInstall: enabled, as it is by default, files which end with<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---.tar.bz2&nbsp;&nbsp;: decompressed &amp; untarred in .vim/ directory<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---.vba.bz2&nbsp;&nbsp;: decompressed in .vim/ directory, then vimball handles it<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---.vim.bz2&nbsp;&nbsp;: decompressed &amp; moved into .vim/plugin directory<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---.tar.gz&nbsp;&nbsp; : decompressed &amp; untarred in .vim/ directory<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---.vba.gz&nbsp;&nbsp; : decompressed in .vim/ directory, then vimball handles it<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---.vim.gz&nbsp;&nbsp; : decompressed &amp; moved into .vim/plugin directory<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---.vba&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: unzipped in .vim/ directory<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---.vim&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: moved to .vim/plugin directory<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---.zip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: unzipped in .vim/ directory<br>
<br>
and which merely need to have their components placed by the untar/gunzip or<br>
move-to-plugin-directory process should be auto-installable.&nbsp;&nbsp;Vimballs, of<br>
course, should always be auto-installable.<br>
<br>
When is a script not auto-installable?&nbsp;&nbsp;Let me give an example:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.vim/after/syntax/blockhl.vim<br>
<br>
The &lt;blockhl.vim&gt; script provides block highlighting for C/C++ programs; it is<br>
available at:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Constant"><a href="http://vim.sourceforge.net/scripts/script.php?script_id=104">http://vim.sourceforge.net/scripts/script.php?script_id=104</a></span><br>
<br>
Currently, vim's after/syntax only supports by-filetype scripts (in<br>
blockhl.vim's case, that's after/syntax/c.vim).&nbsp;&nbsp;Hence, auto-install would<br>
possibly overwrite the current user's after/syntax/c.vim file.<br>
<br>
In my own case, I use &lt;aftersyntax.vim&gt; (renamed to after/syntax/c.vim) to<br>
allow a after/syntax/c/ directory:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Constant"><a href="http://vim.sourceforge.net/scripts/script.php?script_id=1023">http://vim.sourceforge.net/scripts/script.php?script_id=1023</a></span><br>
<br>
The script allows multiple syntax files to exist separately in the<br>
after/syntax/c subdirectory.&nbsp;&nbsp;I can't bundle aftersyntax.vim in and build an<br>
appropriate tarball for auto-install because of the potential for the<br>
after/syntax/c.vim contained in it to overwrite a user's c.vim.<br>
<br>
<br>
<span class="PreProc">==============================================================================</span><br>
7. GetLatestVimScripts Options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#glvs-options" name="glvs-options">glvs-options</a><br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;g:GetLatestVimScripts_wget</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default= &quot;wget&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This variable holds the name of the command for obtaining<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scripts.<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;g:GetLatestVimScripts_options</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default= &quot;-q -O&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This variable holds the options to be used with the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;g:GetLatestVimScripts_wget command.<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;g:GetLatestVimScripts_allowautoinstall</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default= 1<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This variable indicates whether GetLatestVimScripts is allowed<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to attempt to automatically install scripts.&nbsp;&nbsp;Furthermore, the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;plugin author has to have explicitly indicated that his/her<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;plugin is automatically installable (via the :AutoInstall:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;keyword in the GetLatestVimScripts comment line).<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;g:GetLatestVimScripts_autoinstalldir</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default= $HOME/.vim&nbsp;&nbsp;&nbsp;&nbsp; (linux)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default= $HOME/vimfiles (windows)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Override where :AutoInstall: scripts will be installed.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Doesn't override vimball installation.<br>
<br>
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;g:GetLatestVimScripts_scriptaddr</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default='<span class="Constant"><a href="http://vim.sourceforge.net/script.php?script_id">http://vim.sourceforge.net/script.php?script_id</a></span>='<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Override this if your system needs<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;='<span class="Constant"><a href="http://vim.sourceforge.net/script/script.php?script_id">http://vim.sourceforge.net/script/script.php?script_id</a></span>='<br>
<br>
<span class="PreProc">==============================================================================</span><br>
8. GetLatestVimScripts Algorithm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#glvs-algorithm" name="glvs-algorithm">glvs-algorithm</a>&nbsp;<a class="Constant" href="pi_getscript.html#glvs-alg" name="glvs-alg">glvs-alg</a><br>
<br>
The Vim sourceforge page dynamically creates a page by keying off of the<br>
so-called script-id.&nbsp;&nbsp;Within the webpage of<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Constant"><a href="http://vim.sourceforge.net/scripts/script.php?script_id=40">http://vim.sourceforge.net/scripts/script.php?script_id=40</a></span><br>
<br>
is a line specifying the latest source-id (src_id).&nbsp;&nbsp;The source identifier<br>
numbers are always increasing, hence if the src_id is greater than the one<br>
recorded for the script in GetLatestVimScripts then it's time to download a<br>
newer copy of that script.<br>
<br>
GetLatestVimScripts will then download the script and update its internal<br>
database of script ids, source ids, and scriptnames.<br>
<br>
The AutoInstall process will:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Move the file from GetLatest/ to the following directory<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unix&nbsp;&nbsp; : $HOME/.vim<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Windows: $HOME\vimfiles<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if the downloaded file ends with &quot;.bz2&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bunzip2 it<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if the downloaded file ends with &quot;.gz&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gunzip it<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if the resulting file ends with &quot;.zip&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unzip it<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if the resulting file ends with &quot;.tar&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tar -oxvf it<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if the resulting file ends with &quot;.vim&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move it to the plugin subdirectory<br>
<br>
<br>
<span class="PreProc">==============================================================================</span><br>
9. GetLatestVimScripts History&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="pi_getscript.html#getscript-history" name="getscript-history">getscript-history</a>&nbsp;<a class="Constant" href="pi_getscript.html#glvs-hist" name="glvs-hist">glvs-hist</a>&nbsp;{{ "{{{" }}1<br>
<br>
v36 Apr 22, 2013 : * (glts) suggested use of plugin/**/*.vim instead of<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plugin/*.vim in globpath() call.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * (Andy Wokula) got warning message when setting<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g:loaded_getscriptPlugin<br>
v35 Apr 07, 2012 : * (MengHuan Yu) pointed out that the script URL has<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; changed (somewhat).&nbsp;&nbsp;However, it doesn't work, and<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the original one does (under Linux). I'll make it<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yet-another-option.<br>
v34 Jun 23, 2011 : * handles additional decompression options for tarballs<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (tgz taz tbz txz)<br>
v33 May 31, 2011 : * using fnameescape() instead of escape()<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * *.xz support<br>
v32 Jun 19, 2010 : * (Jan Steffens) added support for xz compression<br>
v31 Jun 29, 2008 : * (Bill McCarthy) fixed having hls enabled with getscript<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * (David Schaefer) the acd option interferes with vimballs<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Solution: bypass the acd option<br>
v30 Jun 13, 2008 : * GLVS now checks for existence of fnameescape() and will<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; issue an error message if it is not supported<br>
v29 Jan 07, 2008 : * Bram M pointed out that cpo is a global option and that<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getscriptPlugin.vim was setting it but not restoring it.<br>
v28 Jan 02, 2008 : * improved shell quoting character handling, cygwin<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; interface, register-a bypass<br>
&nbsp;&nbsp;&nbsp;&nbsp;Oct 29, 2007&nbsp;&nbsp; * Bill McCarthy suggested a change to getscript that avoids<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; creating pop-up windows<br>
v24 Apr 16, 2007 : * removed save&amp;restore of the fo option during script<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loading<br>
v23 Nov 03, 2006 : * ignores comments (#...)<br>
<span class="Statement">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>* handles vimballs<br>
v22 Oct 13, 2006 : * supports automatic use of curl if wget is not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; available<br>
v21 May 01, 2006 : * now takes advantage of autoloading.<br>
v20 Dec 23, 2005 : * Eric Haarbauer found&amp;fixed a bug with unzip use;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unzip needs the -o flag to overwrite.<br>
v19 Nov 28, 2005 : * v18's GetLatestVimScript line accessed the wrong<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; script! Fixed.<br>
v18 Mar 21, 2005 : * bugfix to automatic database construction<br>
<span class="Statement">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>* bugfix - nowrapscan caused an error<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (tnx to David Green for the fix)<br>
&nbsp;&nbsp;&nbsp;&nbsp;Apr 01, 2005&nbsp;&nbsp; * if shell is bash, &quot;mv&quot; instead of &quot;ren&quot; used in<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :AutoInstall:s, even though its o/s is windows<br>
&nbsp;&nbsp;&nbsp;&nbsp;Apr 01, 2005&nbsp;&nbsp; * when downloading errors occurred, GLVS was<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; terminating early.&nbsp;&nbsp;It now just goes on to trying<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the next script (after trying three times to<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; download a script description page)<br>
&nbsp;&nbsp;&nbsp;&nbsp;Apr 20, 2005&nbsp;&nbsp; * bugfix - when a failure to download occurred,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetLatestVimScripts would stop early and claim that<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; everything was current.&nbsp;&nbsp;Fixed.<br>
v17 Aug 25, 2004 : * g:GetLatestVimScripts_allowautoinstall, which<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defaults to 1, can be used to prevent all<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :AutoInstall:<br>
v16 Aug 25, 2004 : * made execution of bunzip2/gunzip/tar/zip silent<br>
<span class="Statement">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>* fixed bug with :AutoInstall: use of helptags<br>
v15 Aug 24, 2004 : * bugfix: the &quot;0 0 comment&quot; download prevention wasn't<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; always preventing downloads (just usually).&nbsp;&nbsp;Fixed.<br>
v14 Aug 24, 2004 : * bugfix -- helptags was using dotvim, rather than<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s:dotvim.&nbsp;&nbsp;Fixed.<br>
v13 Aug 23, 2004 : * will skip downloading a file if its scriptid or srcid<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; is zero.&nbsp;&nbsp;Useful for script authors; that way their<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; own GetLatestVimScripts activity won't overwrite<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; their scripts.<br>
v12 Aug 23, 2004 : * bugfix - a &quot;return&quot; got left in the distribution that<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; was intended only for testing.&nbsp;&nbsp;Removed, now works.<br>
<span class="Statement">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>* :AutoInstall: implemented<br>
v11 Aug 20, 2004 : * GetLatestVimScripts is now a plugin:<br>
<span class="Statement">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>* :GetLatestVimScripts command<br>
<span class="Statement">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>* (runtimepath)/GetLatest/GetLatestVimScripts.dat<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; now holds scripts that need updating<br>
v10 Apr 19, 2004 : * moved history from script to doc<br>
v9&nbsp;&nbsp;Jan 23, 2004 :&nbsp;&nbsp; windows (win32/win16/win95) will use<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double quotes (&quot;&quot;) whereas other systems will use<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; single quotes ('') around the urls in calls via wget<br>
v8&nbsp;&nbsp;Dec 01, 2003 :&nbsp;&nbsp; makes three tries at downloading<br>
v7&nbsp;&nbsp;Sep 02, 2003 :&nbsp;&nbsp; added error messages if &quot;Click on...&quot; or &quot;src_id=&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not found in downloaded webpage<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Uses t_ti, t_te, and rs to make progress visible<br>
v6&nbsp;&nbsp;Aug 06, 2003 :&nbsp;&nbsp; final status messages now display summary of work<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( &quot;Downloaded someqty scripts&quot; or<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;Everything was current&quot;)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Now GetLatestVimScripts is careful about downloading<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetLatestVimScripts.vim itself!<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (goes to &lt;NEW_GetLatestVimScripts.vim&gt;)<br>
v5&nbsp;&nbsp;Aug 04, 2003 :&nbsp;&nbsp; missing an endif near bottom<br>
v4&nbsp;&nbsp;Jun 17, 2003 :&nbsp;&nbsp; redraw! just before each &quot;considering&quot; message<br>
v3&nbsp;&nbsp;May 27, 2003 :&nbsp;&nbsp; Protects downloaded files from errant shell<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expansions with single quotes: '...'<br>
v2&nbsp;&nbsp;May 14, 2003 :&nbsp;&nbsp; extracts name of item to be obtained from the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; script file.&nbsp;&nbsp;Uses it instead of comment field<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for output filename; comment is used in the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;considering...&quot; line and is now just a comment!<br>
<span class="Statement">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>* Fixed a bug: a string-of-numbers is not the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; same as a number, so I added zero to them<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and they became numbers.&nbsp;&nbsp;Fixes comparison.<br>
<br>
<span class="PreProc">==============================================================================</span><br>
vim&#0058;tw=78:ts=8:ft=help:fdm=marker<br>
</div>
</article>
<footer>
<a href="#top">Return to the top</a> - <a href="index.html">Return to main</a>
<span class="EnglishJapaneseLink">
<span class="CurrentLanguage">English</span>
</span>
<br />
<div style="text-align:right;">
Hosted by <a href="https://github.com/vim-jp/vimdoc-en">vimdoc-en project</a><br />
If you met any problem, please report it to <a href="https://github.com/vim-jp/vimdoc-en/issues">issue</a>.<br />
</div>
</footer>
<!--<script src="js/check-referrer.js" type="text/javascript"></script>-->
</body>
</html>
<!-- vim:set ts=8 sts=2 sw=2 tw=0 et: -->
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hilarryxu/vimdoc.git
git@gitee.com:hilarryxu/vimdoc.git
hilarryxu
vimdoc
vimdoc
master

搜索帮助