Created
February 9, 2012 16:39
-
-
Save pcon/1780982 to your computer and use it in GitHub Desktop.
salesforce vim config options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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