wood_menu My Weblog My Gallery About me Contact me
Follow me on twitter

October 10, 2009 Archives

Vim : Keep cursor position between sessions

Just add the following line to your ~/.vimrc :

autocmd BufReadPost * if line("'\"") && line("'\"") <= line("") | exe "normal `\"" | endif

Posted by Alexandre De Dommelin on Sat Oct 10 20:00:00 UTC 2009 | Permanent Link | Categories: Tips