It dawned on me that posting my .gvimrc file, which I use on Mac OS X exclusively with MacVim, might be instructive by example for people searching high and low on the interweb for this information (which I just did).
Let me back up a sec. The .gvimrc resource file is meant for the GUI version of the wonderful text editor vim. MacVim is a native GUI version of vim for Mac OS X folks. It is Sliced Bread. MacVim uses .gvimrc to tell it how to behave. MacVim also takes a peek at .vimrc (the general vim resource file), which I’ll post separately.
Without further ado, here is my .gvimrc for those of us who learn just as well by example:
" What a funny comment character " .gvimrc " v 0.1 " rev. 2009-03-18 " Turn on line numbers set number " Change colorscheme " colorscheme slate " Turns on the tab bar always set showtabline=2 " Number of horizontal lines on the screen set lines=60 " GUI Option to remove the Toolbar (T) set guioptions-=T " Sets the font and size set guifont=Bitstream\ Vera\ Sans\ Mono:h12 " Sets the percent transparency set transparency=10
To get this running, do the following:
1. copy the code above and paste it into your favorite text editor
2. save the file in your home directory as ‘.gvimrc’
3. run MacVim