set autoindent
set textwidth=78
set backspace=indent,eol,start
set tabstop=8
set expandtab
set shiftwidth=8
set shiftround
set matchpairs+=<:>
set cinoptions=>2,{0.5s,^-2,e-2,n-2,p2s,(0,t0
set ruler " show the cursor position all the time
set hidden
hi StatusLine ctermfg=grey ctermbg=blue
hi StatusLineNC ctermfg=grey ctermbg=blue
set magic
set showcmd
set showmatch
set showmode
set foldenable
set foldmethod=marker
set comments=b:#,:%,fb:-,n:>,n:)
set joinspaces
set laststatus=2
set report=0
set splitbelow
set whichwrap=<,>,h,l,[,]
set wildchar=<TAB>
set wrapmargin=1
set modeline
set modelines=1
" Switch syntax highlighting on, when the terminal has colors
if &t_Co > 2 || has("gui_running")
syntax on
endif
"colorscheme tango
"if &term=="xterm"
" set term=rxvt
" set t_Co=8
" set t_Sb=^[4%dm
" set t_Sf=^[3%dm
"endif
if has("gui_running")
set gfn=Monospace\ 9
endif
let FILE=expand("~/.resources/abbrev.vim")
if filereadable(FILE)
exe "source " FILE
endif
set encoding=utf-8
" ROT13 Encription in Visual Mode.
vmap <F4> :!tr A-Za-z N-ZA-Mn-za-m<CR><ESC>
" <F6>,<F5> jump to next (previous) make output.
map <F5> :cp<CR>
map <F6> :cn<CR>
au VimLeave * echo " Vim"version" "
" Date string
map <c-d> :r!date +\%a,\ \%e\ \%b\ \%Y\ \%T\ \%z<CR>
" reformat current paragraph with CTRL-J
set formatoptions=cqrt
map <c-j> gqip
autocmd FileType perl set ts=4
autocmd FileType python set ts=4
autocmd BufRead,BufNewFile *.vala setfiletype vala
autocmd BufNewFile,BufRead COMMIT_EDITMSG set filetype=gitcommit
" vim:tw=80 ts=4 et