[Vimoutliner] gpg + vimoutliner

Henrik Holst holst at matmech.com
Fri Jul 25 17:55:13 EDT 2008


Hi!

When I create a gpg encrypted vimoutliner document the first folding
does not work as it should.

My document test.otl:

cat > test.otl <<EOF
BULLITIN BOARDS
	anothertest.com
		user holst
		pass asdf
		mail
		: To: holst <holst at matmech.com>
		: Subject: Welcome to "hidden.se"
		: ...
		: --
		: Thanks, The Management
TEST 2
	this-is-a-test.org
		user apa
		mail
		: here it works. strange
		: ...
TEST 3
	this-test.net
		mail
		: and here, it works as well...
		: ...

 vim: set foldmethod=expr foldlevel=1:
EOF

And encrypt with: gpg -e test.otl

Try and unfold TEST 2 or TEST 3 and save. Then it refolds as it should.
But not if you unfold the first one. Very strange.  As I understand it,
vim re-reads the file because of the gpg encryption, and therefor also
re-folds everything.
	
I would like to be able to save gpg encrypted documents without risking
to display all my passwords to friends snooping over my sholder. :-)

-- 
Henrik Holst, Sweden      | TYPING IS NO SUBSTITUTE FOR THINKING
holst CHR(64) matmech.com | - A Manual for BASIC,
                          |   Darthmouth College, 1 October 1964


More information about the VimOutliner mailing list