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 """"""""""""""""""""""""""""""