" Syntax highlighting, go! syntax on " Lots of history set history=50 " So deets at the bottom set showmode set showcmd set modeline " Don't wrap long lines set nowrap " Auto indent what you can set autoindent " Make searching a little nicer set ignorecase set smartcase set gdefault " Match gt and lt as braces " set matchpairs+=<:> set showmatch " Make backspace a bit nicer set backspace=eol,start,indent " Give me a ruler set ruler " Don't try to be compatible with vi set nocompatible " Two spaces for a tab set shiftwidth=2 set shiftround set tabstop=2 set softtabstop=2 set expandtab " Stop the mouse from interfering set mouse= " Resize splits map :resize -2 map :resize +2 " PHP Syntax check map :w :!php -l % " Highlight chars over 80 columns " highlight OverEighty term=bold ctermfg=red " match OverEighty /\%80v.*/ " I want to be able to read my comments highlight Comment ctermfg=2 " Re-indent XML map :1,$!xmllint --format - " Switch tabs map 8 :tabe map 9 gT map 0 gt " Open file under cursor in new tab map gF " Reload current document on F5 map :edit " Search for current word in code base " My favourite " color xoria256 " Show the file title set title " Line numbers " set nu! " Toggle wrap map :set wrap! " Direction keys for wrapped lines nnoremap k gk nnoremap j gj nnoremap gk nnoremap gj inoremap gka inoremap gja " map :NERDTreeToggle