From ea21050d5fcc77c3b88cd4feb3a5ca6e0054ab38 Mon Sep 17 00:00:00 2001 From: Matthew Reschke Date: Wed, 4 Mar 2015 13:22:53 -0600 Subject: [PATCH] Dont remember last file cursor position --- vimrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 {{{