2010-12-05 12:44:54 +01:00
|
|
|
syntax on
|
2011-02-21 00:45:03 +01:00
|
|
|
set background:dark
|
|
|
|
colorscheme earendel
|
2010-12-05 12:44:54 +01:00
|
|
|
|
2011-02-13 17:31:11 +01:00
|
|
|
au BufRead ~/.mutt/temp/mutt-* set tw=72
|
2011-03-01 18:45:27 +01:00
|
|
|
au BufRead .git/COMMIT_EDITMSG set tw=72
|
2011-02-13 17:31:11 +01:00
|
|
|
|
2010-12-05 12:44:54 +01:00
|
|
|
autocmd FileType make setlocal noexpandtab
|
|
|
|
autocmd BufWritePre *.php :%s/\s\+$//e
|
|
|
|
|
|
|
|
" Highlight everything right of the 80th column
|
2011-03-01 18:45:27 +01:00
|
|
|
highlight rightMargin ctermfg=red guifg=red
|
2010-12-05 12:44:54 +01:00
|
|
|
autocmd BufWinEnter * let w:m1=matchadd('rightMargin', '\%>79v', -1)
|
|
|
|
" Highlight all trailing whitespace
|
|
|
|
highlight trailWhite ctermbg=darkgray guibg=darkgray
|
|
|
|
autocmd BufWinEnter * let w:m2=matchadd('trailWhite', '\s\+$', -1)
|
|
|
|
|
|
|
|
set expandtab
|
|
|
|
set number
|
|
|
|
set smartindent
|
2011-03-23 11:14:53 +01:00
|
|
|
set tabstop=2
|
|
|
|
set shiftwidth=2
|
2010-12-05 12:44:54 +01:00
|
|
|
set nowrap
|
|
|
|
|
|
|
|
" Swap file location
|
|
|
|
set backupdir=/var/tmp//
|
|
|
|
set directory=/var/tmp//
|