My Ubuntu LTS 12.04 has vim editor. If I open a file, move to a paragraph and reopen vim, then the cursor goes to beginning of the file always.
This is not the expected behavior. How the vim can remember last read position after closing a file?
I tried vi
also, but the result is the same.
Best Answer
The file
/etc/vim/vimrc
already contains necessary feature. Just need to uncomment it:(Infact, you can refer to
/usr/share/vim/vim73/vimrc_example.vim
also)