Monday, January 2, 2012

Re: Vim persistent undo with sudoedit

Hi rprabhu!

On Di, 03 Jan 2012, rprabhu@wnohang.net 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 ?

Try the SudoEditน plugin. That implements a workaround. But be sure to
at least use a vim > 7.3.367

น)http://www.vim.org/scripts/script.php?script_id=2709

regards,
Christian
--

--
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: