" General Vim Settings " -------------------- filetype plugin indent on set backspace=2 " Backspace deletes like most programs in insert mode set nobackup set nowritebackup set noswapfile set history=50 set ruler " show the cursor position all the time set showcmd " display incomplete commands set incsearch " do incremental searching set laststatus=2 " Always display the status line set autowrite " Automatically :write before running commands set formatoptions-=t " Don't auto-break long lines (re-enable this for prose) " Softtabs, 2 spaces set tabstop=2 set shiftwidth=2 set shiftround set expandtab " Display extra whitespace set list listchars=tab:»·,trail:·,nbsp:· " Use one space, not two, after punctuation. set nojoinspaces " Display relative line numbers, with absolute line number for current line set number set numberwidth=5 set relativenumber " When the type of shell script is /bin/sh, assume a POSIX-compatible " shell for syntax highlighting purposes. let g:is_posix = 1 " Set spellfile to location that is guaranteed to exist, can be symlinked to " Dropbox or kept in Git and managed outside of thoughtbot/dotfiles using rcm. set spellfile=$HOME/.vim-spell-en.utf-8.add " Autocomplete with dictionary words when spell check is on set complete+=kspell set splitright " Don't require saving before closing a buffer set hidden " vim:ft=vim