syntax on
set laststatus=2
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set smarttab
set autoindent
set smartindent
set number
set ruler
set backupdir=/tmp
set directory=/tmp
set ignorecase
set hls
set helplang=cn
set foldmethod=syntax

转自Qinhu Wang | 王秦虎
Various applications depend on library GD, however, you will alway fail on installing GD by CPAN.
I wrapped all the latest of zlib/libpng/jpeg/freetype/libgd/GD moudels and successfully installed GD on Mavericks (Mac OSX 10.9), hope this could help the one who have the similar environments.
Also works on Yosemite (OS X 10.10).
Note Xcode should be installed first (if you haven’t) and make sure you have a sudo privilege.
Download all the package here.
Extract the package gd.tar.gz and type sudo ./install to install.
This is an alternative approach: