Wednesday, August 25, 2010

Re: vim and encryption

Hi!

On Wed, 25 Aug 2010, ZyX wrote:
> On Wed, 25 Aug 2010, Tobias Klausmann wrote:
> > All that said, I'd still like to use it this way. What I have
> > been unable to accomplish is keeping vim from writing a viminfo
> > file. At first I tried this in vimrc:
> >
> > if exists("key")
> > let viminfo=""
> > endif
> >
> > This does not work. Also, using "set noviminfo" and "let
> > viminfo=n/dev/null" won't work either. In all cases, my edit
> > commands were recallable after quitting vim and starting it
> > again.
> You forgot to add an ampersand: you should use either
> set viminfo=
> or
> let &viminfo=""
> . Now you are setting only global variable g:viminfo.

Done that, no luck though: apparently, checking for the existance
of "key" does not work - the variable's contents is "hidden" as
the help text explains. Unfortunately, this also means that
exists() doesn't see it in this case. Thus, I need another way of
detecting that vim is in encryption mode.

Any ideas?

Regards,
Tobias


--
Sent from aboard the Culture ship
GSV (Plate Class) The Anticipation Of A New Lover's Arrival

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