A similar solution (an empty /etc/skel/.nano_history) would work for nano, since both vim and nano are part of the default install. For packages that are not, another solution would have to be applied, since the first user may not get the benefit of the skel entry (since it wouldn't be there on a default install).
-- 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