On Jan 31, 9:41 am, Ben Schmidt <mail_ben_schm...@yahoo.com.au> 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