Appalachian Chapter of the Association for Computing Machinery


     > Home

Section Navigation


Vi Improved

What is Vim?

VIM (Vi IMproved) is a powerful text editor available for *nix and many other systems, including Windows. It emulates the behavior of the classic vi editor written by Bill Joy but adds many features.

Ubuntu Linux

Unfortunately, vim does not come installed on Dapper Drake (6.06) or Edgy Eft (6.10). What seems to be vim is actually a package called vim-tiny, which is missing some key features of vim, like syntax highlighting.

To install vim you can use the Synaptics package and search for vim, or open a terminal and run

sudo apt-get install vim

Depending on your system you should be prompted for your (or the root) password, it will download and install, and then you will be good to go.

Microsoft Windows 95/98/ME/NT/200/XP

For Windows users who would like to use vim, but would prefer a Graphical User Interface, there is a Windows version of vim which includes Gvim. Download the Windows version here

References, Guides, and Cheatsheets

Sample .vimrc

When vim is run by default it will look for a vimrc file that contains configuration info and scripts that it can use while it is running. A sample vim configuration can be found here.

Unix/Linux

On *nix systems this file is usually called .vimrc and found in your home directory. Depending on how your system is set up you may not see files starting with a "." when you list the contents of a directory. To list everything in a directory at the command line run

ls -a

If you would like to use the .vimrc supplied here you can run the following command

wget -O ~/.vimrc http://student.cs.appstate.edu/~do54457/vim/vimrc

This will get the text file from the server and save it as .vimrc in your user's home directory.
NOTE: if you currently have a .vimrc file in your home directory it will be overwritten with this command. If this is the case then either your system administrator has provided you with a default vimrc or you have an idea of what you're doing. From here you can just open it in your favorite editor ;-) and copy and paste the lines you want.

Windows 95/98/ME/2000/XP

On Windows systems, after installing gVim the configuration file is called _vimrc and by default installed to the C:Program Filesvim directory.

If you would like to use the .vimrc supplied here then save the vimrc file from your browser (File->Save As...) into the Vim directory as vimrc.vim. Now edit the _vimrc file and replace the line that says

source $VIMRUNTIME/vimrc_example.vim

with

source $VIMRUNTIME/vimrc.vim

This will tell vim to also use this file for configuration info.

Vim and R

R, a statistics language and environment, can be integrated with vim.

IRC

irc.freenode.net #vim

For more info visit http://www.vim.org

Immutable Page | Discussion | Print View | History |