A similar problem occurs with the .nano_history file with nano, so if a patch were to be applied to vim, something similar would be required for nano...
-- Some programs create root-owned files in user $HOME when run under sudo https://launchpad.net/bugs/58002 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs