summaryrefslogtreecommitdiff
path: root/htdocs/runtime.php
blob: 2da9c01d8b661b568406232124fed987381f0ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
// Vim runtime details
require_once("include/init.inc");
$page_title = "Vim runtime files download";
$page_sid = "sid_runtime.php";

include("header.php");
?>

<h1>Download runtime files</h1>

When you obtain the latest version of Vim through CVS, Subversion or use the 
archives and apply all the patches, you still don't have the latest version of 
the runtime files (syntax highlighting, indenting, filetype plugins, etc.).  
That is because no patches are made for them.
<P>
<b>When using Mercurial you already have the latest runtime files</b>
<P>
If you can't wait for the next Vim release to get the latest runtime files,
this is the way to get them:
<OL>
<LI>
Install <A HREF="http://www.a-a-p.org/">Aap</A>; see <A HREF="http://www.a-a-p.org/download.html">http://www.a-a-p.org/download.html</A>.
</LI>
<LI>
You need to be able to write in the $VIMRUNTIME directory.  Become root with the "su" command if necessary.
</LI>
<LI>
Start Vim and type these commands:
<PRE>
        :cd $VIMRUNTIME
        :!aap -f ftp://ftp.vim.org/pub/vim/runtime/main.aap fetch
</PRE>
This will obtain a recipe with MD5 checksums of the runtime files.
<A HREF="http://www.a-a-p.org/">Aap</A> will download the files that you don't
have yet and the files that have changed.  Files that are still the same will
be skipped.
</LI>
</OL>
<P>
Note: This does obtain new files, but it does not delete files that are no
longer used.  It also is an effective way to erase any changes you made to the
files yourself!
<P>
After you have done this once you only need to do "aap fetch" in the
$VIMRUNTIME directory.  The recipe you downloaded contains the URL for where to
download the latest version.  You can do this as often as you like, for
example, every week.
<P>
The "main.aap" recipe was generated with the 
<A HREF="http://www.a-a-p.org/exec/ref-commands.html#CMD-MKDOWNLOAD">:mkdownload</A> command in <A HREF="http://www.a-a-p.org/">Aap</A>.

<h2>Alternate method: rsync</h2>
If you have the "rsync" command, you can use it to update your runtime files.
This example works for Unix.  Note that it deletes files that are not on the
ftp site.  If you want to be careful, leave out the --delete argument.
Or be prepared to reinstall Vim.
<PRE>
        :cd $VIMRUNTIME
        :!rsync -avzcP --delete --exclude="dos" --exclude="spell" ftp.nluug.nl::Vim/runtime/ .
</PRE>
<p>
This excludes the files used for spell checking, because the contents of the
spell directory is huge.  If you want to get all the spell files anyway leave 
out  --exclude="spell".
<p>
For MS-Windows this command should work:
<PRE>
        :cd $VIMRUNTIME
        :!rsync -avzcP ftp.nluug.nl::Vim/runtime/dos/ .
</PRE>
Note that "--delete" is not there, because there are a few installed files that 
are not runtime files.

<?php
$google_ads = "normal";
include("footer.php");
?>