Skip to content

Instantly share code, notes, and snippets.

@pcon
Created February 9, 2012 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcon/1780982 to your computer and use it in GitHub Desktop.
Save pcon/1780982 to your computer and use it in GitHub Desktop.
salesforce vim config options
" General stuff
set nocompatible
filetype on
set background=light
syntax on
" don't make it look like there are line breaks where there aren't:
set nowrap
" search and replace stuff
set ignorecase
set smartcase
set encoding=utf-8
set fileencoding=utf-8
set tw=0
set backupdir=~/.bak
set directory=~/.swp
" Don't put an extra \n at the EOL
au BufWritePre * set binary noeol
au BufWritePost * set nobinary eol
" Use 'apex' as the syntax and set our style information
au BufEnter *.cls set syntax=apex tabstop=4 shiftwidth=4 softtabstop=4 nowrap
au BufEnter *.cls exec 'match Todo /\%>80v.\+/'
au BufEnter *.trigger set syntax=apex tabstop=4 shiftwidth=4 softtabstop=4 nowrap
au BufEnter *.trigger exec 'match Todo /\%>80v.\+/'
au BufEnter *.page set tabstop=4 shiftwidth=4 softtabstop=4 nowrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment