Not really a sollution for this problem, but why don't you use 'sudo -e <filename>' instead of 'sudo vi <filename>' ?
-- vim should populate skel/.viminfo so ownership is not affected by initial sudo https://launchpad.net/bugs/58002 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
