Go to the last position in files

This commit is contained in:
amix committed 2016-05-14 16:57:26 +01:00
1 parent 91ebc3ca0d
commit 78f522f1cb
1 file changed
+1 -6
+1 -6
View File
@@ -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
""""""""""""""""""""""""""""""