I got this error when I attempted to use the vi editor (vim-enhanced) under Fedora Linux.
I fixed it by deleting the .viminfo file in my home directory and removing vim-enhanced and re-installing it again.
yum -y remove vim-enhanced
yum -y install vim-enhanced