Vim Tips Wiki
(add temporary note about "Vim without Cream" problems)
(42 intermediate revisions by 18 users not shown)
Line 3: Line 3:
 
|previous=1577
 
|previous=1577
 
|next=1579
 
|next=1579
|created=February 3, 2008
+
|created=2008
 
|complexity=basic
 
|complexity=basic
 
|author=Metacosm
 
|author=Metacosm
Line 11: Line 11:
 
|category2=
 
|category2=
 
}}
 
}}
  +
This tip outlines some recommended procedures for downloading a Vim executable (that is, a program you can run). Alternatively, you can download the Vim source and [[Building Vim|build your own Vim]].
  +
  +
==Windows==
 
Which version of Vim should I use?
 
Which version of Vim should I use?
 
*I want a fully patched standard Vim for Windows, without compiling it myself.
 
*I want a fully patched standard Vim for Windows, without compiling it myself.
 
*:Get '''''Vim without Cream''''': The easiest and best solution for Windows users on 32-bit systems is to use the standard Vim at http://sourceforge.net/projects/cream/files/
::''See [[#Vim without Cream problems|"Vim without Cream problems" below]].''
 
 
*:Under "Newest Files" near the top of the list, there should be a file with a name like <code>gvim-7-3-3.exe</code><br>(Vim without Cream, version 7.3.3 = 7.3 with patches 1–3).
:The easiest and best solution for Windows users on 32-bit systems is to use the standard Vim (Vim without Cream) at http://sourceforge.net/projects/cream/files/
 
 
*:The release notes are also available; they show the output of the Vim <code>:version</code><br>command which includes what features are in the build.
:Enable scripting in your browser.
 
 
*:Click the most recent <code>gvim-7-3-''xxx''.exe</code> to download.
:Near the bottom, click "+" next to "Vim" to expand the list of files.
 
  +
*:Run the downloaded installer and accept the license agreement.
:The first file listed under Vim should have a name like <tt>gvim-7-2-234.exe</tt> (Vim without Cream, version 7.2.234 = 7.2 with patches 1–234).
 
  +
*:On the Choose Components window, expand "Icons, menus and shortcuts".
:You can click the icon in the "Notes/Subscribe" column to see the output of the <tt>:version</tt> command (which shows what features are in the build).
 
  +
*:If you want an "Edit with Vim" item in Explorer's right-click menu, check the box for "Add Contextual Menu".
:Click the most recent <tt>gvim-7-2-''xxx''.exe</tt> to download; run the download to install.
 
  +
*:Finish the install.
:It installs a patched standard <tt>gvim.exe</tt> (GUI) and <tt>vim.exe</tt> (console), with all help and runtime files.
+
*:It installs a patched standard <code>gvim.exe</code> (GUI) and <code>vim.exe</code> (console), with all help and runtime files.
:Includes Perl, Python, Ruby, Tcl and MzScheme interfaces.
 
  +
*:All installed files are "standard" Vim (the installers named <code>cream-''xxx''.exe</code> are for a special "Vim ''with'' Cream" version).
  +
*:Includes interfaces for Lua, MzScheme, Perl, Python, Tcl. Ruby 1.8 support was included up until version 7.3.289. More recent versions no longer include Ruby support.
 
*:See [[#Vim without Cream problems|"Vim without Cream problems" below]].
 
*I'm using 64-bit Windows.
 
*I'm using 64-bit Windows.
  +
:*You can ''probably'' use the '''''Vim without Cream''''' install mentioned above. The Cream build is better tested and supported than current 64-bit distributions.
:See [http://code.google.com/p/vim-win3264/wiki/Win64Binaries information and download].
 
  +
:*Multiple individuals have published 64-bit builds compiled from the official [http://code.google.com/p/vim/ Vim Mercurial repository] (in no particular order):
  +
::*http://bintray.com/veegee/generic/vim_x64, including 64-bit python 2.7 and 3.3 support, and lua 5.2 support
  +
::* http://tuxproject.de/projects/vim , supports both x86 (32-bit) and x64 (64-bit) architectures, compiled with Xpm and DirectX support, provides "huge" feature set and scripting interfaces for Tcl, Python 2, Python 3, Ruby, Lua (x86 only), and Perl
  +
::* https://bitbucket.org/Haroogan/vim-for-windows , supports both x86 (32-bit) and x64 (64-bit) architectures, provides "huge" feature set and scripting interfaces for latest Python 2, Python 3, Ruby, Lua, and Perl
 
::*'''(outdated)''' http://code.google.com/p/vim-win3264/wiki/Win64Binaries
  +
:While the 32-bit Vim should suffice for most users as mentioned, there are a few reasons why a 64-bit Vim is preferable to a 32-bit version on 64-bit systems:
  +
:# Editing files >4GB in size.
  +
:# 64-bit WinPE does not have a WOW64 subsystem, hence you cannot run a 32-bit executable.
  +
:# Windows Server 2008 R2 (i.e. Win7 Server) also does not have the WOW64 subsystem, by default, although it is an optional component you can install.
  +
:# Potential for performance gains, particularly in heavy memory operations like memcpy and memcmp which can be optimized for the 64-bit word size.
  +
:#Getting 32-bit Vim into a 64-bit "Edit with Vim" context menu entry is tricky.
 
*I want standard Vim (source code to compile for all platforms, or unpatched Windows executables).
 
*I want standard Vim (source code to compile for all platforms, or unpatched Windows executables).
:Available at http://www.vim.org/download.php
+
*:Available at http://www.vim.org/download.php
 
*I want an easy-to-use configuration for Windows with common menus and standard keyboard shortcuts.
 
*I want an easy-to-use configuration for Windows with common menus and standard keyboard shortcuts.
:Cream for BSD, Linux and Windows is available at http://cream.sourceforge.net/download.html
+
*:Cream for BSD, Linux and Windows is available at http://cream.sourceforge.net/download.html
:Click "Windows One-click installer, includes both Vim and Cream".
+
*:Click "Windows ... One-click installer, includes both Vim and Cream".
:You will download a file with a name like <tt>cream-0-41-gvim-7-1-293.exe</tt> (Cream version 0.41 with gvim version 7.1.293 = 7.1 with patches 1–293).
+
*:You will download a file with a name like <code>cream-0-42-gvim-7-2-245.exe</code><br>(Cream version 0.42 with gvim version 7.2.245 = 7.2 with patches 1–245).
: '''Note:''' This package may include an obsolete version of Vim. After you download it, you may want to upgrade the "Vim" part of it from (let's say) 7.1.293 to (let's say) 7.2.234, see above "I want a fully patched Vim for Windows".
 
*I want to put Vim on a keydrive and use it on a bunch of Windows machines, but standard versions of Vim choke when the keydrive is mounted as a different drive letter.
 
:Check out GVim Portable http://portablegvim.sourceforge.net/
 
*I want Vim on a Macintosh.
 
:See the versions at http://www.vim.org/download.php#mac
 
   
==Vim without Cream problems==
+
===Vim without Cream problems===
The "Vim without Cream" at http://sourceforge.net/projects/cream/files/ is the best Vim for Windows (without compiling it yourself), but:
+
"Vim without Cream", as described above, is the best Vim for 32-bit Windows (without compiling it yourself). This section documents known problems.
*The release notes show that it is built with feature +ole which means that it will try to load the OLE interface DLL each time it starts, which would be irritating if you just wanted to run Vim on another computer without bothering to install it.
+
*The release notes show that it is built with feature +ole which means that it will try to load the OLE interface DLL each time it starts, which would be irritating if you just wanted to run Vim on another computer without bothering to install Vim.
*The Sourceforge page has changed again, resulting in a confusing list of versions. The instructions given above (which were correct at 19 July 2009) are no longer appropriate. For Vim and gvim without Cream, look for the highest version of the gvim-7-2-xxx.exe file. Currently that file is "gvim-7-2-245.exe Tue Aug 04 2009 14:29".
+
*The format of the Sourceforge page occasionally changes and the instructions given above may not exactly match what you see. For standard Vim and gvim without Cream, look for the highest version of the <code>gvim-7-3-xxx.exe</code> file.
  +
*In the past, the Sourceforge page required that scripting be enabled in your browser, and, near the bottom of the file list, you had to click "+" next to "Vim" to expand the list of files.
   
==Comments==
+
==Macintosh==
 
See the versions at http://www.vim.org/download.php#mac
{{todo}}
 
This can be our tip on downloading Vim.
 
   
  +
==Linux/Unix==
The [[Main Page]] links to [[Vim documentation]] and I would eventually like that page cleaned up with a new section about downloading and building Vim. It would have a link to this tip, and hopefully a link to another tip about building Vim (one for Unix and one for Windows).
 
  +
Linux distributions by default often include a stripped-down version of Vim without scripting or GUI (aliased to command vi or vim). Use your distribution's package manager to install the full-featured Vim version. The relevant package names are usually in the form vim-* .
   
  +
For Debian and Ubuntu-based Linux distributions:
The following seem relevant (may need to merge):
 
  +
:<code># apt-get install vim-gtk</code>
*[[VimTip46|46 Win32 binaries with perl, python, and tcl]]
 
  +
For Fedora:
*[[VimTip531|531 Build Vim in Windows with Cygwin]]
 
  +
:<code># yum install vim-enhanced vim-X11</code>
*[[VimTip714|714 Version independent installation of Vim on Windows]]
 
*[[VimTip744|744 Get latest releases for syntax highlighting, runtime, plugins etc]]
 
*[[VimTip747|747 Easily keep runtime files up to date]]
 
   
  +
Beware that installing distribution's Vim package usually adds a system-wide customization of Vim via .vimrc, .gvimrc, .virc, etc. You may want to examine locations of system .vimrc files in the output of <code>:version</code> and to check what gets sourced on Vim startup with <code>:scriptnames</code>. In case of Debian vim-gtk package, the system-wide customization starts in /etc/vim/ and the actual settings are in /usr/share/vim/vim74/debian.vim or similar.
----
 
  +
  +
Your distribution's package for installing Vim may be very out of date, or it may not have the right Vim features. You may get a better result by downloading the source and building your own Vim because it is very easy to [[Building Vim|build your own Vim]].
  +
  +
==Comments==

Revision as of 06:22, 26 November 2014

Tip 1578 Printable Monobook Previous Next

created 2008 · complexity basic · author Metacosm · version 7.0


This tip outlines some recommended procedures for downloading a Vim executable (that is, a program you can run). Alternatively, you can download the Vim source and build your own Vim.

Windows

Which version of Vim should I use?

  • I want a fully patched standard Vim for Windows, without compiling it myself.
    Get Vim without Cream: The easiest and best solution for Windows users on 32-bit systems is to use the standard Vim at http://sourceforge.net/projects/cream/files/
    Under "Newest Files" near the top of the list, there should be a file with a name like gvim-7-3-3.exe
    (Vim without Cream, version 7.3.3 = 7.3 with patches 1–3).
    The release notes are also available; they show the output of the Vim :version
    command which includes what features are in the build.
    Click the most recent gvim-7-3-xxx.exe to download.
    Run the downloaded installer and accept the license agreement.
    On the Choose Components window, expand "Icons, menus and shortcuts".
    If you want an "Edit with Vim" item in Explorer's right-click menu, check the box for "Add Contextual Menu".
    Finish the install.
    It installs a patched standard gvim.exe (GUI) and vim.exe (console), with all help and runtime files.
    All installed files are "standard" Vim (the installers named cream-xxx.exe are for a special "Vim with Cream" version).
    Includes interfaces for Lua, MzScheme, Perl, Python, Tcl. Ruby 1.8 support was included up until version 7.3.289. More recent versions no longer include Ruby support.
    See "Vim without Cream problems" below.
  • I'm using 64-bit Windows.
  • You can probably use the Vim without Cream install mentioned above. The Cream build is better tested and supported than current 64-bit distributions.
  • Multiple individuals have published 64-bit builds compiled from the official Vim Mercurial repository (in no particular order):
While the 32-bit Vim should suffice for most users as mentioned, there are a few reasons why a 64-bit Vim is preferable to a 32-bit version on 64-bit systems:
  1. Editing files >4GB in size.
  2. 64-bit WinPE does not have a WOW64 subsystem, hence you cannot run a 32-bit executable.
  3. Windows Server 2008 R2 (i.e. Win7 Server) also does not have the WOW64 subsystem, by default, although it is an optional component you can install.
  4. Potential for performance gains, particularly in heavy memory operations like memcpy and memcmp which can be optimized for the 64-bit word size.
  5. Getting 32-bit Vim into a 64-bit "Edit with Vim" context menu entry is tricky.
  • I want standard Vim (source code to compile for all platforms, or unpatched Windows executables).
    Available at http://www.vim.org/download.php
  • I want an easy-to-use configuration for Windows with common menus and standard keyboard shortcuts.
    Cream for BSD, Linux and Windows is available at http://cream.sourceforge.net/download.html
    Click "Windows ... One-click installer, includes both Vim and Cream".
    You will download a file with a name like cream-0-42-gvim-7-2-245.exe
    (Cream version 0.42 with gvim version 7.2.245 = 7.2 with patches 1–245).

Vim without Cream problems

"Vim without Cream", as described above, is the best Vim for 32-bit Windows (without compiling it yourself). This section documents known problems.

  • The release notes show that it is built with feature +ole which means that it will try to load the OLE interface DLL each time it starts, which would be irritating if you just wanted to run Vim on another computer without bothering to install Vim.
  • The format of the Sourceforge page occasionally changes and the instructions given above may not exactly match what you see. For standard Vim and gvim without Cream, look for the highest version of the gvim-7-3-xxx.exe file.
  • In the past, the Sourceforge page required that scripting be enabled in your browser, and, near the bottom of the file list, you had to click "+" next to "Vim" to expand the list of files.

Macintosh

See the versions at http://www.vim.org/download.php#mac

Linux/Unix

Linux distributions by default often include a stripped-down version of Vim without scripting or GUI (aliased to command vi or vim). Use your distribution's package manager to install the full-featured Vim version. The relevant package names are usually in the form vim-* .

For Debian and Ubuntu-based Linux distributions:

# apt-get install vim-gtk

For Fedora:

# yum install vim-enhanced vim-X11

Beware that installing distribution's Vim package usually adds a system-wide customization of Vim via .vimrc, .gvimrc, .virc, etc. You may want to examine locations of system .vimrc files in the output of :version and to check what gets sourced on Vim startup with :scriptnames. In case of Debian vim-gtk package, the system-wide customization starts in /etc/vim/ and the actual settings are in /usr/share/vim/vim74/debian.vim or similar.

Your distribution's package for installing Vim may be very out of date, or it may not have the right Vim features. You may get a better result by downloading the source and building your own Vim because it is very easy to build your own Vim.

Comments