set number syntax on set cindent " Disable autocomment autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o set mouse=a " Enable your mouse " xsel needed? set clipboard=unnamedplus " Copy paste between vim and everything else set tabstop=2 " The width of a TAB is set to 4. " Still it is a \t. It is just that " Vim will interpret it to be having " a width of 4. set shiftwidth=2 " Indents will have a width of 4 set softtabstop=2 " Sets the number of columns for a TAB set expandtab " Expand TABs to spaces " Better tabbing vnoremap < >gv " Better window navigation nnoremap h nnoremap j nnoremap k nnoremap l " I hate escape more than anything else inoremap jk inoremap kj ":help ftplugin "autocmd FileType md nmap !./gen.sh " doesn't work... nnoremap :!./gen.sh " You can't stop me cmap w!! w !sudo tee % " autocmd BufWritePost *.md silent !markdown > plain.html " autocmd BufWritePost *.md silent !markdown > :r.html " run on current filename " :autocmd BufWritePost * silent !run_tests.sh " list auto commands " :autocmd BufWritePost * " remove all current auto commands " :autocmd! BufWritePost *