tag:blogger.com,1999:blog-12243715.post111377915951965548..comments2023-05-14T01:08:39.380-07:00Comments on Linux Journal | Linux Tips: Have Vim remeber last cursor positionTravelTouristVideoshttp://www.blogger.com/profile/06397377314569093942noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-12243715.post-59277726024581424182009-02-08T16:53:00.000-08:002009-02-08T16:53:00.000-08:00In case other people stumble along this, here'...In case other people stumble along this, here's the proper way to enable "last-position-jump" (as documented in the help):<BR/><BR/>au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif<BR/><BR/>No setting of 'viminfo' needed (and with unrelated, unnecessary options). No moving the cursor to the end of the first line when '" is past the end of the file.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12243715.post-55857117713032805992008-12-04T02:59:00.000-08:002008-12-04T02:59:00.000-08:00works like a dream. thank you !works like a dream. thank you !Anonymousnoreply@blogger.com