:set shiftwidth=4 softtabstop=4 expandtab syntax on if has("autocmd") au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") \| exe "normal! g'\"" | endif endif