Friday, January 20, 2012

warning on opening encrypted file

list--

i'm one of those risk-takers who like to keep his passwords in a
module in his home path -- for the purposes of this email let's
say i call it "passwords"

as a nod to security i've started keeping it encrypted
(blowfish)

i also like the new undofile option, it would have saved me much
hair tearing and teeth gnashing if i had had it all along

when these two likes coincide (opening an encrypted file with
'set undofile' in my .vimrc) i get an unpleasant warning that

E832: Non-encrypted file has encrypted undo file:
/yadayada/passwords

i can work around this with

if expand("%") != "passwords"
set undofile
endif

in my .vimrc, but on reflection i can't think of a better
candidate for persistent undo than that module

does anyone have a better workaround, or is this perchance a bug
somewhere along the line -- after all, it is indeed not a
non-encrypted file and should not be reporting it as such

my vim is 7.3.406

tia,

sc

--
You received this message from the "vim_use" 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

No comments: