Saturday, November 30, 2013

VIM: open file at previous position

add the following to your ~/.vimrc:
set viminfo='10,\"100,:20,%,n~/.viminfo

if it still does not work, the problem is likely to be that the ~/.viminfo does not belong to your account. Use the following command to fix it:
sudo chown YourUserName:YourGroup ~/.viminfo

No comments: