Vim Config (and Windows)

This is a set of instructions for configuring Vim for the Praxis Program. Most of it will only apply to Windows, but I’ve included some notes for any UNIX-like system (LINUX or Mac) at the bottom.

Windows

The bulk of this is just downloading and installing things that aren’t included by Windows or by the non-existent Windows package manager.

Installing Everything

  • Install Vim.

  • Install Ruby 1.9.2. (You can get the preview release here). Make sure you click “Add Ruby executables to your path.”

  • Install msysgit. Look for “Full installer for official Git.” During the installation select “Git Bash Here.” Later either select “Use Git Bash only” or “Run Git from the Windows Command Prompt.” Finally, also select “Checkout as-is, commit Unix-style line endings.”

  • Download the Windows binary for Exuberant CTags. It comes in a ZIP file. Open it and put ctags58ctags.exe (it may be display as ctags58ctags with type Application) into C:Program FilesVimvim73.

  • Finally, download cURL. Download the one at the bottom for “Win32 – Generic” labelled “Win32 2000/XP binary” (it also says that it’s 1.32 MB at the moment). Open and put curl.exe, libcurl.dll, libeay32.dll, and libssl32.dll into C:Program FilesVimvim73.

Vim Configuration

For this, you’ll need to work from a command prompt. This may be a new experience for Windows users, but don’t worry. It won’t bite you, and it’s easier than it may seem going in.

First in Windows 7, click on the Windows button and search for “bash.” Open up the program it returns (“Git Bash”).

In XP, look under the Start menu for the Git program group and select “Git Bash”.

Now, open this script. Copy-and-paste each line into the Git Bash Console window that’s open.

Run Vim

That’s it. Give it a spin.

Look under the start menu, for the “Vim 7.3” group and select “gVim.” In Windows 7, you may want to pin it to your taskbar.

Fonts

Check out Vim GUI Font Magic for instructions on how to change the font from the truly yeechy Windows default. This also has some suggestions for nicer fonts.

UNIX (LINUX or Mac)

The process for installing this for Linux or Mac is the same. You’ll want to install Vim, Git, and cURL. Chances are, they’re already there.

For Mac, you’ll probably want to either download the DMG file from the MacVim project or use something like Homebrew and Xcode.

For Linux, you’ll probably want to just use your distribution’s package manager (sudo apt-get vim-gnome for Ubuntu).

After that, basically the same script as above should work. You’ll want to use the version here, however, which is modified for UNIX.

My interests include text processing, text mining, and natural language processing, as well as web-development and general programming. Studied medieval English literature and linguistics at UGA. Dissertated on lexicography. Now I program in Haskell and write when I'm not building cool stuff for the Scholars' Lab. Also, husband and parent. Do you notice that sleep…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Archives