[Vimoutliner] gpg + vimoutliner

Henrik Holst holst at matmech.com
Fri Jul 25 18:06:11 EDT 2008


On Fri, Jul 25, 2008 at 11:55:13PM +0200, Henrik Holst wrote:
> 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
> _______________________________________________
> VimOutliner mailing list
> VimOutliner at vimoutliner.org
> http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner

And as usual the solution presents itself after explaining the problem
for another person.

Or at least a work around :-)

Put the mode line at the top of the file instead at the bottom.

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