Hi ma! On Mo, 13 Jul 2009, ma wrote:
> What I end up doing is something like this: > > ":w !su root tee %" > > but I get an error saying that /usr/bin/tee can not be executed. I think the command should be: :w !su root -c "tee eval.txt >/dev/null" Using su might still causes some trouble, therefore I do not recommend to use it. Part of the problem is, that when su asks for the password you have to set shellredir correctly or it might look like vim is hanging, although it only waits for input. You might try to use SudoEdit.vim which can be found at http://www.vim.org/scripts/script.php?script_id=2709 It tries hard to avoid the su trouble and you can configure it to use any authentication tool you like. Mit freundlichen Grüßen Christian -- Die meisten unserer Fehler erkennen und legen wir erst dann ab, wenn wir sie an den anderen entdeckt und gesehen haben, wie sie denen stehen. -- Karl Gutzkow --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
