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

Re: Can I get at [crypted] ?

Expand Messages
  • Robert Hicks
    ... Thanks Ben!!! Bob -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more
    Message 1 of 3 , Jan 31, 2011
      On Jan 31, 9:41 am, Ben Schmidt <mail_ben_schm...@...> wrote:
      > On 1/02/11 1:25 AM, Robert Hicks wrote:
      >
      > > When I open a file that has been encrypted by Vim I see [crypted] in
      > > the cmd section at the bottom of the window. Is there a way I can
      > > programmaticly use that? For instance, if I enter a [crypted] buffer I
      > > can have Vim turn off features (swap, backup, etc) to make that more
      > > secure?
      >
      > &key (the 'key' option) can be used to detect whether a file is
      > encrypted or not and used appropriately in an autocommand.
      >
      > E.g.
      >
      > au BufReadPost * if &key != "" | setlocal noswap nobackup | endif
      >
      > Ben.

      Thanks Ben!!!

      Bob

      --
      You received this message from the "vim_mac" 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
    Your message has been successfully submitted and would be delivered to recipients shortly.