Vim – Fix .viminfo Owned by Root Issue


The .viminfo file in my home directory is owned by root. Could anyone please explain how that could have happened without me asking it?

$ ls -la | grep .viminfo
-rw-------  1 root    root       4175 Nov  3 19:11 .viminfo

Best Answer

I think it was created while using "sudo vim" to edit some file on the system.

Related Question