On 29/01/09 07:05, StarWing wrote:
> just a question: where to find the sub-version of Vim and how to
> update Vim??
First the version details: ":intro" displays, at top, something like
VIM - Vi IMproved
version 7.2.91
The .91 here (or whatever you see there in your own version) is just the
highest included patch. For the detail, see the output of ":version". If
there is an "Included patches:" line (usually within the first five
lines or so), it says which are all the patch numbers included. If there
is no such line, then you've got no patches (no bugfixes) in addition to
the major/minor version level. (Patches for each version are different.)
In a script: the variable v:version (or just version) (read-only) is
equal to 100*(major version) + (minor version). To test whether you have
patch 35 for version 7.2, use
if version == 702 && has('patch35'),
or, better,
if (version == 702 && has('patch35')) || version > 702
see
:help v:version
:help has-patch
Now, how to update Vim to a recent version and patchlevel. The details
depend on your OS.
- Windows: Steve Hall distributes, at
https://sourceforge.net/project/showfiles.php?group_id=43866&package_id=39721
, upgraded self-installing distributions for Windows, with all the
latest runtime files as of the build time, plus pre-compiled executables
of gvim, Console Vim, and the ancillary programs that go with them
(GvimExt, xxd, install, uninstal, etc.). As of this writing, the latest
distribution there is at version/patchlevel 7.2.88 and is dated 2009-01-23.
- Unix/Linux: You should compile your own version from source. See
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm for all
details of how I keep my Vim binaries up-to-date.
- Mac: There exists a MacVim project, but I don't know the details. You
might want to inquire on the vim_mac group for details.
- Other: It still depends on your OS but I don't know the details. You
might want to check my Unix HowTo (see above) and look into your
src/Makefile for any details applying to your particular platform.
Best regards,
Tony.
--
A mathematician is a machine for converting coffee into theorems.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---