There is a tradeoff in choosing which home directory to use. By using your own, your config files are used and applications behave the way you have configured them and come to expect them to. By using root's, they use root's config, which usually means defaults, and is not what you expect. The problem can't be solved by sudo. The solution is the empty .vimrc in /etc/skel.
** Package changed: ubuntu => vim (Ubuntu) ** Changed in: vim (Ubuntu) Status: Confirmed => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/58002 Title: Some programs create root-owned files in user $HOME when run under sudo To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/58002/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs