Hello,

Since by default sudo leaves $HOME unchanged, running 'sudo vim' when
the user does not have a ~/.viminfo file (e.g. first run), will cause
the file to be created in the user's home directory (not in /root),
but owned by root with mode 600 so it is not usable when vim is later
run as a normal user.

A possible fix would be to use getpwuid(3) to retrieve the home
directory, which should be more reliable than $HOME.

Best regards,
Itay

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui