set autoindent set background=light set backspace=indent,eol set nobackup set cmdheight=1 set completeopt=longest set confirm set display=lastline,uhex set noerrorbells " see fo-table for formatoptions information set expandtab set nofoldenable set history=50 set nohlsearch set guioptions=cM set incsearch set nojoinspaces set linebreak set list " can view tabs, but turns off linebreak set listchars=tab:\ \ ,trail:\ set more set report=1 set ruler set rulerformat=%40(%t\ %m%r\ %=%l,%c%V\ %P%) set scrolljump=1 set scrolloff=5 set showmatch set noshowmode set shiftwidth=4 set noshiftround set smarttab set softtabstop=4 set nostartofline set tabstop=4 set titlelen=70 set titlestring=%t set warn set wrapscan set writebackup " extend old syntax to reformat a paragraph (most common reformatting case) map Q gqap " don't need visual, and ge is unnecessarily complex map v ge map V gE " go to last position in buffer au BufReadPost * if line("'\"") | exe "normal '\"" | endif " Set nice colors highlight NonText ctermbg=lightgrey highlight SpecialKey ctermbg=lightgrey syntax enable filetype on autocmd FileType java set smartindent autocmd FileType mail set textwidth=72 autocmd FileType perl set smartindent autocmd FileType tex set textwidth=72 let loaded_matchparen = 1