On Fri, Jan 20, 2012 at 09:14:13PM +0100, Bram Moolenaar wrote:

> Toothpik wrote:

> > 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

> I don't see this problem, I can use an undo file with an encrypted file
> without problems.

> Perhaps the sequence in which you do things matter?  Try to make a
> reproducible example, starting with "vim -u NONE".  Don't use your real
> passwords file :-).

ok, you're right -- with "vim -u testvimrc" it doesn't happen
too, where testvimrc contains only

    set nocompatible
    set undofile

so, for the next while or so i will be moving things around in
my [monster] vimrc in an attempt to find out why

anyone wanting to help out is welcome to see the beast at

    https://github.com/toothpik/toothpik-s-.vimrc/blob/master/.vimrc

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

Reply via email to