Monday, January 2, 2012

Vim persistent undo with sudoedit

Hi,

I use persistent undo feature of vim. However, I use sudoedit
when editing files as root. This breaks the persistent undo since
it relies on filenames. Is there a way around this ? I tried a
few vim plugins (like sudo.vim) which didn't seem to work for me.
I am using either of them because a few plugins (like
neocomplcache) complain that they won't run as sudo (which is
right) since they run a few things in background. So is there a
way around this ?

--------------------------
Raghavendra Prabhu
GPG Id : 0xD72BE977
Fingerprint: B93F EBCB 8E05 7039 CD3C A4B8 A616 DCA1 D72B E977
www: wnohang.net

No comments: