set hidden " Hide buffer when abandoned. set history=1000 " Keep 1000 lines in command history. set viminfo='1000,f1,<500 " Not quite sure what this is doing. " Wildstyle. set wildmenu " Enhanced command-line completion. set wildmode=list:full " If > 1 match, list all and complete first. " Ignore case when searching unless search contains uppercase letters. " smartcase has no effect if ignorecase is not set. "set ignorecase "set smartcase "set incsearch " Search while typing. Not sure if I like this. "set scroll=3 "set scrolloff=3 " Keep 3 lines visible around cursor. " Backup set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp,%TMP%,$TEMP set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp,%TMP%,$TEMP " Indentation set tabstop=4 set softtabstop=4 set shiftwidth=4 set expandtab set autoindent "set smarttab set backspace=indent,eol,start " Wrapping set showbreak=... " There is a CTRL-K NS digraph at the end here since I have the autotrim whitespace thing goin on below. Also, this comment is intentionally long to show off the behavior. set linebreak " Wrap on breakat chars instead of last char. "set ruler set sessionoptions-=options " Don't store options in session files. set foldmethod=indent set foldlevel=999 "syntax on syntax off set nohlsearch set t_Co=0 "filetype on "filetype plugin on "filetype indent on set shortmess=atI set mouse=a " Split behavior "set splitright "set splitbelow " Colors "set background=dark "colorschem slate " Remove trailing whitespace autocmd BufWritePre * :%s/\s\+$//e " Disable automatic * and // insertion for comments. autocmd FileType * setlocal formatoptions-=cro