*** This bug is a duplicate of bug 58002 ***
https://bugs.launchpad.net/bugs/58002
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: vim (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs,
*** This bug is a duplicate of bug 58002 ***
https://bugs.launchpad.net/bugs/58002
confirmed.
this is a duplicate of bug #58002,
it has been pointed out there that it is not a bug of vim, but of the usage of
sudo in general.
Another workaround:
use
$ sudo -H foo.txt
or
$ sudoedit foo.txt
**