set nocompatible set shiftwidth=4 " for <<, >>, ctrl-D, and ctrl-T set softtabstop=4 " tabs are still 8 chars, but hitting tab gives me 4 spaces set expandtab " This uses spaces instead of tabs, which could be useful " for when files I create are opened in non-vi editors; space " and code indent formatting will be preserved. Remember too " that :%retab will change tabs to spaces in a document " that uses tabs instead of spaces. "set autoindent " fairly stupid indenting "set smartindent " reasonably smart indenting "set cindent " brilliant indenting for any C-like language set showmatch " show matching brackets and parens filetype indent on syntax sync minlines=5000 set nobackup set nowritebackup set encoding=utf-8 set scrolloff=3 " show 3 lines above or below cursor when scrolling set showmode " show insert, replace, or visual mode in last line set showcmd " show command in last line set visualbell " flash screen on bell set ttyfast " assumes fast connection set ruler " show line and column number set laststatus=2 " every window gets a status line " WARNING: need a space at the end of this line set statusline=%<%F%m%r%h%w\ \ \ \ %=%{&ff}/%Y\ \ \ \ %l,%v\ \ \ %o\ " make vi regexp syntax more perl-like by turning ever / into /\v, " where \v at the start of a regexp turns on more perl-like behaviour nnoremap / /\v vnoremap / /\v " for huge files "set noswapfile "syntax clear "set undolevels=-1 "set bufhidden=unload "set foldmethod=manual