Hi wonderful users of VIM, I constantly edit files while not in superuser mode and when I'm finished editing, I realize "Doh! I can't save it."
Usually I have to temporary save my changes, and overwrite them. I googled to see what can be done to remedy this situation without ever exiting vim, and I found something like ":w !sudo tee %" That works fine on my ubuntu box, but @ work I'm using SuSE9 and there is no command "sudo" 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. Anyone know what I'm doing wrong? I sort of have a hunch that this might be a shell question (using bash, fyi) rather than vim, but I'd love to hear some of your suggestions/solutions. Thanks very much in advance. -- mahmoud mack abdelkader python powered http://blog.mahmoudimus.com/ [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
