vi and pgp (was: mutt & pgp 6.5.8)

vi and pgp (was: mutt & pgp 6.5.8)

Post by Sven Guck » Tue, 23 Jan 2001 10:18:12




Quote:> I use vim as my editor with mutt.  I should be
> able to encrypt the vim buffer, shouldn't I?
> :!pgp %<CR> e!<cr> or something close to that?

You can use these commands to use pgp on the rest
of the text within the current edit buffer:

  :,$!             pgp -fast +clear 2>/dev/tty
  :,$! /bin/sh -c 'pgp -fast +clear 2>/dev/tty'

Sven  [quoting Elijah the Bearded]

 
 
 

vi and pgp (was: mutt & pgp 6.5.8)

Post by Dr. Charles E. Campbe » Wed, 24 Jan 2001 01:20:44



Quote:> I use vim as my editor with mutt.  I should be
> able to encrypt the vim buffer, shouldn't I?
> :!pgp %<CR> e!<cr> or something close to that?



Quote:>You can use these commands to use pgp on the rest
>of the text within the current edit buffer:

>  :,$!             pgp -fast +clear 2>/dev/tty
>  :,$! /bin/sh -c 'pgp -fast +clear 2>/dev/tty'

 ---------------------------------------------------------------------

Here's what I use with pgp in my <.vimrc>:

 ---------------------------------------------------------------------
augroup PGP
  au!
  au BufReadPost *.pgp          :%!pgp -f
  au BufWritePre *.pgp          :%!pgp -fc
augroup END

" Security (PGP) stuff -- Mark beginning of block (ma), go to end of
"                         block, then type one of the following:
"  \Pd: decrypt text, as filter
"  \Pe: encrypt text, ascii armor, as filter
"  \Pk: add public-key to my keyring
"  \Ps: digitally sign, text, ascii-armor, filter
map \Pd   :set lz<CR>0!'apgp -f<CR>:set nolz<CR>
map \Pe   :set lz<CR>0!'apgp -etaf<CR>:set nolz<CR>
map \Pk   :set lz<CR>0!'apgp -kaf<CR>:set nolz<CR>
map \Ps   :set lz<CR>0!'apgp -staf<CR>:set nolz<CR>
 ---------------------------------------------------------------------

Regards,
C Campbell
--
        Charles E Campbell, Jr, PhD            _   __   __
        Goddard Space Flight Center           / /_/\_\_/ /

  PGP public key: http://www.erols.com/astronaut/pgp.html/

 
 
 

1. pgp phone pgp.asc i am paratroper

Has some one bothered looking at the pic this sob sends, is it really
just a pic of him?

     /Tony
--
     /\___/\ Who would you like to read your messages today? /\___/\

 --oOO-(_)-OOo---------------------------------------------oOO-(_)-OOo--
 DSS: 0x9363F1DB, Fp: 6EA2 618F 6D21 91D3 2D82  78A6 647F F247 9363 F1DB
 ---???---???-----------------------------------------------???---???---
    \O/   \O/       ?1999 <http://www.svanstrom.com/>       \O/   \O/

2. asp.net and console application

3. Interoperability problem PGP 6.5.2a (Windows) & PGP 6.5.1 (Linux)

4. LS: Deleting an element of an array

5. PGP & Eudora: problem replying to PGP/mime e-mail

6. OS/2.1

7. mail tools for QNX: mutt, gpg, etc, useful for PGP mail

8. New !Boot on a RiscPC. Which one?

9. PGP with Mutt

10. mutt -> pgp/gnupg -> netscape => BAD Signature

11. Command Line PGP or PGP DLLs

12. PGP plugin 4.9.5 [PGP 7 crash fix and more] for Pegasus Mail released

13. PGP plugin 4.9.4 [improved PGP/MIME and QP handling] for Pegasus Mail released