" Disable vi compatibility mode set nocompatible " Format options: " t Auto-wrap " c Auto-wrap comments " r Automatically insert comment leader after enter " q Make gq format comments set formatoptions=tcrq " Automatic indentation set autoindent " Show cursor position, line number, and such set ruler " Length of a line before breaking set textwidth=78 set backspace=indent,eol,start " Use syntax highlighting syntax on let loaded_matchparen = 1 " Correctly map various keys map End $ map Home 0 " Default tab stop should be 8 set ts=8 " Just use spaces. set softtabstop=4 set shiftwidth=4 set expandtab " Print the command being typed set showcmd " Incremental searching set incsearch " Highlight search matches set hlsearch " Automatically write changes before things like :make set autowrite set background=dark