Vim is available for many different systems and there are several versions. This page will help you decide what to download.
Most popular:
MS-Windows: | Click this link to download the self-installing executable
(using ftp).
Signed MS-Windows files are available on the vim-win32-installer site (gvim_8.2.0012_x86_signed.exe is recommended) |
Unix: | See the GitHub page, or Mercurial, if you prefer that. |
Mac: | See the MacVim project |
Details and options for:
Mirrors | Alternative sites to download Vim files from. |
Sources | Build Vim yourself and/or make changes. |
GitHub | Obtain Vim sources with a git client (recommended). |
Mercurial | Obtain Vim sources with a Mercurial client (recommended if you don‘t like git). |
Patches | Include the latest improvements (requires sources and rebuilding). |
Runtime | Get the latest syntax files, documentation, etc.. |
Script links | Links to individual syntax, indent, color, compiler and ftplugin scripts. |
Translations | Non-English documentation packages. |
Versions before 7.3 can also be obtained with Subversion and CVS.
Vim 8.2 is the latest stable version. It is highly recommended, many bugs have been fixed since previous versions. If you have a problem with it (e.g., when it‘s too big for your system), you could try version 6.4 or 5.8 instead.
To avoid having to update this page for every new version, there are
links to the directories. From there select the files you want to download.
In the file names ## stands for the version number. For example,
vim##src.zip
with version 8.2 is vim82src.zip and
vim-##-src.tar.gz for version 8.2
is vim-8.2-src.tar.gz.
Links are provided for quick access to the latest version.
Note that the links point to the latest version (currently 8.2) to avoid
that caching causes you to get an older version.
The best way to install Vim on Unix is to use the sources. This requires a compiler and its support files. Compiling Vim isn‘t difficult at all. You can simply type "make install" when you are happy with the default features. Edit the Makefile in the "src" directory to select specific features.
You need to download at the sources and the runtime files. And apply all the latest patches. For Vim 6 up to 7.2 you can optionally get the "lang" archive, which adds translated messages and menus. For 7.3 and later this is included with the runtime files.
Summary:
git clone https://github.com/vim/vim.git cd vim/src make
Summary:
hg clone https://bitbucket.org/vim-mirror/vim cd vim/src make
The runtime and source files together: | vim-##.tar.bz2 | vim-8.2.tar.bz2 (ftp) |
The files ending in ".tar.gz" are tar archives that are compressed with gzip. Unpack them with tar -xzf filename.
The single big file ending in ".tar.bz2" is a tar archive compressed with
bzip2. Uncompress and unpack it with
bunzip2 -c filename | tar -xf -.
All archives should be unpacked in the same directory.
If you can‘t compile yourself or don‘t want to, look at the site of the supplier of your Unix version for a packaged Vim executable. For Linux distributions and FreeBSD these are often available shortly after a new Vim version has been released. But you can‘t change the features then.
For modern MS-Windows systems (starting with XP) you can simply use the
executable installer:
gvim82.exe (ftp)
It includes GUI and console versions, for 32 bit and 64 bit systems.
You can select what you want to install and includes an uninstaller.
If you want a signed version you can get a build from
vim-win32-installer
It supports many interfaces, such as Perl, Tcl, Lua, Python and Ruby.
There are also 64bit versions which only run on 64 bit MS-Windows and use a
lot more memory, but is compatible with 64 bit plugins.
You can also get a nightly build from there with the most recent improvements,
with a small risk that something is broken.
Since there are so many different versions of MS operating systems, there are
several versions of Vim for them.
For Vim 5.x, Vim 6.x and Vim 7 look in
the pc directory (ftp).
There are three versions that run as an MS-Windows application. These provide menus, scrollbars and a toolbar.
There are three versions that run on MS-DOS or in a console window in MS-Windows:
There are a few extra files:
The files ending in ".zip" can be unpacked with any unzip program. Make sure you unpack them all in the same directory!
Alternate distributions
Quite a long time ago, Vim development started on the Amiga. Although it‘s a really old system now, it might still work. However, this has not been tested recently. You may have to use an older version for which Amiga binaries are available.
For Vim 5.x and Vim 6 look in
the amiga directory (ftp).
Vim 7 files can be found at
os4depot.net. This is for AmigaOS 4. Made by Peter Bengtsson.
The files are all tar archives, compressed with gzip. To unpack, first uncompress them with gzip -d filename. Then unpack with tar xf filename. You need to unpack the archives in the same directory.
The OS/2 version runs in a console window.
For Vim 5.x and Vim 6 look in
the os2 directory (ftp).
Version 6.2 is not available.
Versions 6.3 and 6.4 were compiled by David Sanders.
Version 7.0 was compiled by David Sanders.
The files ending in ".zip" can be unpacked with any unzip program. Make sure you both zip archives in the same directory!
If you want to compile the OS/2 version, you need the EMX compiler. Use the Unix source archive, runtime files and the extra archive. After unpacking the runtime archive, move all the files and directories in the "runtime" directory one level up.
The Macintosh binaries are not on the Vim ftp site. They are produced by a few Macintosh lovers. Often they lag behind a few versions.
Since MacOS 10.3 the "vi" program is actually a console version of Vim 6.2 or later. It has few features. If you want a GUI version or more features Vim needs to be installed separately.
There are currently two kinds of Vim for Macintosh:
MacVim has more a Mac look and feel, is developed actively and most people prefer this version. Most of MacVim was made by Björn Winckler.
MacVim can be downloaded here: https://github.com/macvim-dev/macvim
New versions are made quite often. Subscribe to the vim-mac maillist to be informed about bugs and updates.
Recent binaries for Mac OS/X can be found on this SourceForge project. Maintained by Nicholas Stallard.
There is also a version for Mac OSX that works in a terminal window and a GUI
version for X11 with GTK (produced by Marc Liyanage):
http://www.entropy.ch/software/macosx/welcome.html#vim
Here is a multi-byte version of Vim 5.7 (for Japanese, possibly also for
Korean and Chinese; not for Unicode):
http://www-imai.is.s.u-tokyo.ac.jp/~asai/macvim-e.html
Most of the work for the Macintosh port (Classic and Carbon) was done by Dany St-Amant.
If you have OSX and a setup for compiling programs, you can use the Unix and Extra source code archives and compile yourself. See the Unix section above.The development tools can be downloaded from Apple‘s developer web site. Hint: stuffit expander can handle .bz2 files. Turn to the vim-mac maillist to meet other Vim-Mac users.
原文:https://www.cnblogs.com/sundahua/p/12492754.html