Disable VIM data

When editing sensitive files VIM can store sensitive data in .viminfo

In home directory, edit:

.vimrc

Add:

set viminfo="0"

If you prefer registers for functionality, you can also add a new command for non register use of VIM.
(Users of VIM or VI hardly ever have an alias for starting vim as vim -i )

Add to .bashrc –> alias pvtvim vim=’vim -i’

using pvtvim will then start vim with -i – still cat .viminfo – just to be sure 🙂