Wikia

Vim Tips Wiki

Changes: Easily keep runtime files up to date

Edit

Back to page

m (Updating Duplicate, that was the wrong duplicate Tip number is all.)
(Delete the old content which is still in the history.)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
{{review}}
+
#REDIRECT [[Get latest releases for syntax highlighting, runtime, plugins etc]]
{{Duplicate|744}}
 
{{TipImported
 
|id=747
 
|previous=746
 
|next=748
 
|created=June 17, 2004
 
|complexity=intermediate
 
|author=Michael Jarvis
 
|version=6.0
 
|rating=10/6
 
|category1=Building Vim
 
|category2=
 
}}
 
I try to always keep up to date on the latest and greatest patches and runtime files. It's pretty easy to install the patches against the source code, but there are no patches for the runtime files.
 
 
What I do is use an FTP mirroring tool (with a shell script wrapper) that keeps the runtime directory in my source code up-to-date. I personally use the fmirror tool (from ftp://ftp.sunet.se/pub/nir/ftp/utilities/fmirror/) but I would think any decent tool would work. Every so often, usually when applying a source patch, I run this script, and watch the output to see if any of the runtime files have been updated. If so, I change into the vim63/src directory (or whatever version we're at) and do a "make installruntime".
 
 
Here's the command I use for fmirror:
 
 
<pre>
 
/usr/bin/fmirror -k \
 
-l $HOME/src/vim63/runtime \
 
-p user@domain.com \
 
-r /pub/vim/runtime \
 
-s ftp.vim.org \
 
-S -V3
 
</pre>
 
 
If there are no changes, I see something like this:
 
 
<pre>
 
07:36:06 /pub/vim/runtime @ ftp.vim.org -> /home/michael/src/vim63/runtime
 
07:36:06 Connecting to ftp.vim.org...
 
07:36:06 Connected.
 
07:36:08 Remote timezone: -119 minutes from GMT
 
07:36:11 Mirror finished.
 
</pre>
 
 
If there are changes, I see the files being downloaded.
 
 
Then it's as simple as "cd vim63/src && make installruntime".
 
 
==Comments==
 
This is pretty out-of-date, and I now use rsync instead of fmirror.
 
----
 
See also [[Get latest releases for syntax highlighting, runtime, plugins etc]] (the present page may need merging e.g. by making it a comment on the linked page) — [[User:Tonymec|Tonymec]] 09:59, March 30, 2010 (UTC)
 
----
 

Latest revision as of 11:01, July 2, 2013

  1. REDIRECT Get latest releases for syntax highlighting, runtime, plugins etc

Around Wikia's network

Random Wiki