24 lines
597 B
VimL
24 lines
597 B
VimL
|
syntax on
|
||
|
colorscheme zenburn
|
||
|
|
||
|
autocmd FileType make setlocal noexpandtab
|
||
|
autocmd BufWritePre *.php :%s/\s\+$//e
|
||
|
|
||
|
" Highlight everything right of the 80th column
|
||
|
highlight rightMargin ctermfg=darkred guifg=darkred
|
||
|
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
|
||
|
set tabstop=4
|
||
|
set shiftwidth=4
|
||
|
set nowrap
|
||
|
|
||
|
" Swap file location
|
||
|
set backupdir=/var/tmp//
|
||
|
set directory=/var/tmp//
|