Loading ...
Sorry, an error occurred while loading the content.
 

Re: Prompt for Permissions Elevation?

Expand Messages
  • Robin
    ... I think it s a common problem! There are scripts and info here: http://vim.wikia.com/wiki/Su-write ... (although you might need to pay attention to whether
    Message 1 of 3 , Sep 12 12:58 AM
      On Tue, Sep 9, 2008 at 4:46 PM, Joe Fiorini <joe@...> wrote:
      > One of the biggest annoyances to me about Vim (and this could be
      > PEBKAC) is when I try to view a file in Vim that I don't have
      > permissions to edit. I usually don't realize it until I've either just
      > entered insert mode or I'm trying to write my changes. Is it possible
      > to have MacVim prompt for a password and elevate a user's permissions
      > when writing and permissions are insufficient (similar to TextMate)?
      > To me that would be a killer feature!

      I think it's a common problem!

      There are scripts and info here:
      http://vim.wikia.com/wiki/Su-write

      but my favorite is:
      :w !sudo tee % > /dev/null

      (although you might need to pay attention to whether this changes any
      special permissions on the file).

      Cheers

      Robin

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.