[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Inline text editor?



How about this in your ~/.vimrc:

    " Attempt to do the right thing for *,.gpg files
    augroup GPG
      au!
      au BufReadPre *.gpg       :set noswapfile
      au BufReadPost *.gpg      :%!gpg --decrypt -q 2> /dev/null
      au BufWritePre *.gpg      :%!gpg -e -q --yes
      au BufWritePost *.gpg     u
    augroup END    

This particular group of settings will only happen when the file being 
edited has a *.gpg extension.

Chris
-- 
Christopher S. Swingley           phone: 907-474-2689
IS Professional, Level 4          email: cswingle@iarc.uaf.edu
IARC -- Frontier Program          GPG and PGP keys at my web page:
University of Alaska Fairbanks    www.frontier.iarc.uaf.edu/~cswingle



Reply to: