Abbey Workshop

VIM and GVIM Settings for Mac OS X

Getting VIM setup the way you want on OS X can be a little difficult. I found an article at frymaster.dyndns.org that lists the facts. Here they are with a few edits.

Settings for .vimrc

" set our tabs to four spaces
set ts=4

" turn syntax highlighting on by default
syntax on

" set auto-indenting on for programming
set ai

" turn off compatibility with the old vi
set nocompatible

" turn on the "visual bell" - which is much quieter than the "audio blink"
set vb

" do not highlight words when searching for them. it's distracting.
set nohlsearch

" automatically show matching brackets. works like it does in bbedit.
set showmatch

" do NOT put a carriage return at the end of the last line! if you are programming
" for the web the default will cause http headers to be sent. that's bad.
set binary noeol

" make that backspace key work the way it should
set backspace=indent,eol,start

Settings for .gvimrc

Here are the settings for .gvimrc.

" syntax highlighting on
syntax on

" auto indent
set ai

" show line numbers
set nu

" tabs should be four spaces
set ts=4

" do not put a cr at the end of the file. this will result in headers sent if you do web programming
set binary noeol

" highlighting search results is annoying
set nohlsearch

" show matching brackets
set showmatch

" make that backspace key work the way it should
set backspace=indent,eol,start

" OPTIONAL
" show whitespace at end of lines
highlight WhitespaceEOL ctermbg=lightgray guibg=lightgray
match WhitespaceEOL /s+$/

" make the last line where the status is two lines deep so you can see status always
set laststatus=2

" vi compatible is LAME
set nocompatible

" no bell, please
set vb

" a better font...
set gfn=Monaco:h15:a

" set the screen width and height
win 80 25

The element marked OPTIONAL is designed to show trailing whitespace on the end of lines. If you find the grey bars annoying, just remove these lines.

The gfn=Monaco:h15 is key. This sets the default font to Monaco at 15 points. By default the font size was very small on my TiBook.

Thanks to Frymaster for writing this up. Very helpful stuff.

Google
  Web abbeyworkshop.com   

Copyright © Abbey Workshop 2006

Music Only Search
The Black MP3 Album
The MP3 Album Lyrics
Wprld Music Plus
Mp3 Songs Blog
Music Search Store
First Music Search
Mega MP3 Blog
E MP3 BLog
My MP3 Diary
Fast MP3 Finder
My Blog MP3
Mp3 Songs Mart
My MP3 Songs Album
Top Music Group
Mp3 Tune Records
Song Album Guide
Music DataDite
MP3 Buying Guide
Top MP3 Downloads
MP3 Tune Festival
FAST MP3 Downloads
MP3 Mart Online
Upper MP3
Premium MP3 Site
Music Data online
Fine MP3 Audio
Cheap Music Albums
Fine mp3 downloads
World MP3 Music Records
Mp3 Music Data Direct
The Fine Mp3
MP3 Files World
Home Music Store
DatMP3
Fat MP3 Audio
MP3 ZigZag
MP3 Songs Direct
MP3 Tune World
E MP3 Log
Boom MP3 Music
Speedy MP3
Top 20 MP3 music
Deep MP3 World
Deep MP3 Download
Best-20 MP3
Top Twenty MP3
Deep MP3
Big MP3 Guide
Deep MP3 Audio
Mp3 R.O.B.
MP3-Pop Online
Greate-20-MP3
MP3 Appear
3T-MP3