diff --git a/vimrc b/vimrc index 67181e8..04c9633 100644 --- a/vimrc +++ b/vimrc @@ -445,11 +445,11 @@ match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$' nnoremap c /^\(<\\|=\\|>\)\{7\}\([^=].\+\)\?$ " }}} -" Restore cursor position upon reopening files {{{ -autocmd BufReadPost * - \ if line("'\"") > 0 && line("'\"") <= line("$") | - \ exe "normal! g`\"" | - \ endif +" Restore or remember last cursor position upon reopening files {{{ +"autocmd BufReadPost * +" \ if line("'\"") > 0 && line("'\"") <= line("$") | +" \ exe "normal! g`\"" | +" \ endif " }}} " Extra vi-compatibility {{{