Restore last cursor position in Vim

My most favorite editor is always Vim for 10 years. One of reason I switched my laptop to Ubuntu is that I can use Vim anytime I want. Anyway, I use RedHat-based distribution more than 5 years. Switching distribution for personal use just likes a painful process. I don't know much about Debian-based distribution like Ubuntu. Luckily, most things work out of box. I have just found one thing different in Ubuntu an in Fedora Core. Vim in Ubuntu didn't restore my last cursor position.

This functionality saves lots of my time to jump around the file to previous position automatically. However, it seems Ubuntu is very clean so it is not enabled by default. Actually, it needs a kind of macro to handle events. By the way, I found Tip #80 to solve this problem effectively. Wow! My Vim is back.

Technorati Tags: , , ,

Post new comment