My .vimrc File
Here is the contents of my current vimrc file. There's nothing special about it; I posted it here more for backup purposes, in case one day I lose my config file.
" Use Vim settings instead of Vi settings
set nocompatible
" 4 spaces for indenting
set shiftwidth=4
" How wide is a tab?
set tabstop=4
" How many columns to use when hitting tab?
set softtabstop=4
" Uses spaces instead of tabs
set expandtab
" Turn autoindenting on
set autoindent
" Turn on syntax highlighting
syntax on
" Show ruler
set ruler
" When typing a closing bracket, briefly
" highlight the matching opening bracket
set showmatch
" Change the colour scheme
colorscheme darkblue
" GUI Specific Stuff
if has('gui_running')
" Text Width
set textwidth=80
" Width
set columns=110
" Height
set lines=52
" Use a mouse
set mousa=a
endif
if has('gui')
" GUI Options
" g: grey inactive menu items
" m: display menu bar
" r: display right scrollbar
" b: display bottom scrollbar
" t: enable tearoff menus
" T: enable toolbar
set go=gm
set guifont=Courier
endif
