From 78f522f1cb066766393110dcb39cf9fc558c5244 Mon Sep 17 00:00:00 2001 From: amix Date: Sat, 14 May 2016 16:57:26 +0100 Subject: [PATCH] Go to the last position in files --- vimrcs/basic.vim | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/vimrcs/basic.vim b/vimrcs/basic.vim index 8c579772..08011612 100644 --- a/vimrcs/basic.vim +++ b/vimrcs/basic.vim @@ -260,12 +260,7 @@ catch endtry " Return to last edit position when opening files (You want this!) -" autocmd BufReadPost * -" \ if line("'\"") > 0 && line("'\"") <= line("$") | -" \ exe "normal! g`\"" | -" \ endif -" Remember info about open buffers on close -" set viminfo^=% +au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif """"""""""""""""""""""""""""""