vi/vim

Introduction

vi and vim are popular, widely-used text editors.

Customization

Customize your vim environment by creating a ~/.vimrc file.

Disable Vim Matching Parentheses Highlighting

This feature annoys me, so I'm documenting the command to disable it in case it annoys you, too. Add this instruction to your ~/.vimrc:

let g:loaded_matchparen=1

Enable Vim Color Syntax Highlighting

  1. Assign the value xterm-color to your TERM environment variable, either manually at the command line or automatically within your ~/.cshrc file.
    tcsh shell:
    
    % set term=xterm-color
    
  2. Add these instructions to your .vimrc file:
    syntax enable
    colorscheme darkblue
    

This example randomly uses the darkblue colorscheme. Browse the installed system vim colorschemes until you find one that you like. They're located in:

/usr/share/vim/vim[NN]/colors/

References

  1. http://en.wikipedia.org/wiki/Vi
  2. http://en.wikipedia.org/wiki/Vim_(text_editor)
  3. http://vim.sourceforge.net/
  4. http://vimdoc.sourceforge.net/