Switching to Vim as your CS312 Editor

You will need to make use of one package for this switch:

Because vim's sml mode provides a fairly good indenting algorithm, we will require that you use Vim until later in the course. Vim will also give you warnings when exceeding the 80-character line limit -- something you will certainly find useful.

Windows

Installing Vim
  1. Download this setup file (3.6 MB) Vim editor
  2. Install Vim to C:\Vim\ directory. (If you really object to C:\Vim\, ask for assistance.)
  3. After installing Vim, download this archive (65 KB) for CS312 customizations.
  4. Extract the contents of the archive to the C:\Vim\ directory (or to where you installed vim). Be sure to extract preserving the directory tree structure (options depend on your software). For the next step to work, you will need to put it in the correct location.
  5. Locate Vim in your start menu and start gVim.

Note: If you already use vim, backup your vimrc file before extracting the CS312 customizations. After extracting, merge in your vimrc with the one provided by us.

Note: If you wish to uninstall emacs, Double click Start -> Control Panel -> Add Remove Software. Look for Emacs in the list and click remove.

Macintosh

Download this archive, and if you can get it to work with vim on the mac, tell us how. :)

Unix/Linux

##Installing CS 312 Software on Linux

## Get the CS312 customizations for Vim
wget http://www.cs.cornell.edu/courses/cs312/2003sp/vim/vimfiles.tar.gz

## Put it in your home directory
mv vimfiles.tar.gz ~
cd ~

## Extract it in your home directory :)
tar -xvzf vimfiles.tar.gz

As Vim is included with almost every Unix distribution these days, you only need to ensure that your distribution has version 6.1 or greater. This can be checked by typing vim on the command prompt without any arguments.

Note: If you already use vim, backup your vimrc file before extracting the CS312 customizations. After extracting, merge in your vimrc with the one provided by us.