set nocompatible " Enable features not found in vanilla vi " File type stuff: filetype on " Detect filetype filetype plugin on " Load plugins for detected filetype filetype indent off " Filetype specific autoindent syntax on " Colorize code set autochdir " Change working dir to dir of edited file " set autochdir " May not work right with remote files " Search stuff: set ignorecase " Ignore case during search set smartcase " Be case sensitive if mixed-case search term set incsearch set showmatch " Indents and tabs: set autoindent " Automatic indent set nosmartindent " Don't auto indent new lines set tabstop=4 " One tab equals four spaces set shiftwidth=4 " Number of spaces for autoindent set expandtab " Convert tabs into spaces set bs=2 " Let BACKSPACE delete map! ii vmap "+y " Interface preferences: set title " Show file name in window title bar set titlestring=vim\ %F set cmdheight=1 " 2 doesn't seem to avoid 'press to continue' set laststatus=2 " Always show status line set showcmd " Display incomplete commands set ruler " Show column and line number in status line set showmode " Show insert, visual, or replace mode in cmd area "set nu " Turn on line numbering set scrolloff=8 " Scroll to show 8 lines above or below cursor set visualbell " Don't beep on error set t_vb= " Don't flash on error either set spell spelllang=en_us " Enable running spell check " Show long lines and trailing spaces " CTRL-K -> for → " CTRL-K .M for · " CTRL-K .3 for ⋯ " CTRL-K Tr for ▷ " (use :dig for a list of diagraphs) set list listchars=tab:▷▷,extends:→,trail:· "colorscheme desert " http://ethanschoonover.com/solarized set background=dark colorscheme solarized if has("gui_running") set co=80 " Set window width in columns set lines=65 " Set window height in lines set mouse=a " Enable mouse support set guioptions-=T " Hide toolbar set guifont=Inconsolata\ Medium\ 13 " For Linux " set guifont=Monaco:h14 " For OS X endif " Misc let html_use_css = 1 " Use CSS when exporting files with 2html " Folding, indent seems to work best set foldmethod=indent set foldlevelstart=20 " Open file with folds open