diff options
author | Tom Willemsen | 2011-07-28 00:25:27 +0200 |
---|---|---|
committer | Tom Willemsen | 2011-07-28 00:25:27 +0200 |
commit | 0b0e95e88c1dbd6a9f16300ae03f725e37b6369b (patch) | |
tree | c373b1c5a5c49dc72c23ee708fc478d807d00768 /.vimrc | |
parent | af0eeb3f5251367970b15ef4e614bca56c59ee43 (diff) | |
download | dotfiles-0b0e95e88c1dbd6a9f16300ae03f725e37b6369b.tar.gz dotfiles-0b0e95e88c1dbd6a9f16300ae03f725e37b6369b.zip |
Preparing placing home-directory in repo
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -0,0 +1,33 @@ +syntax on +set background:dark +colorscheme earendel + +au BufRead ~/.mutt/temp/mutt-* set tw=72 +au BufRead .git/*_EDITMSG set tw=72 + +autocmd FileType make setlocal noexpandtab +autocmd BufWritePre *.php :%s/\s\+$//e + +" Highlight everything right of the 80th column +highlight rightMargin ctermfg=red guifg=red +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=2 +set shiftwidth=2 +set nowrap + +" GUI settings +set guioptions-=m "remove menu bar +set guioptions-=T "remove toolbar +set guioptions-=r "remove right-hand scroll bar +set guifont=tamsyn\ 15 + +" Swap file location +set backupdir=/var/tmp// +set directory=/var/tmp// |