Monday, January 2, 2012

Re: Vim persistent undo with sudoedit

On 2012-01-03, Raghavendra Prabhu wrote:
> 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 ?

Did you try the latest version of SudoEdit.vim
(http://vim.sourceforge.net/scripts/script.php?script_id=2709)? The
release notes for version 11 mention fixing a problem with the undo
file, so it appears that it is supposed to work with persistent
undo.

Regards,
Gary

--
You received this message from the "vim_use" 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

No comments: