jamessan / vim-gnupg

This script implements transparent editing of gpg encrypted files.
http://www.vim.org/scripts/script.php?script_id=3645
724 stars 72 forks source link

Ability to encrypt all files in folder #101

Closed CertainLach closed 5 years ago

CertainLach commented 5 years ago

I want to use this for all files (with any extenstion) within a specified dir, how can i do that?

jamessan commented 5 years ago

You want to change g:GPGFilePattern to match any file under that directory. If that's supposed to be in addition to the normal extension-based matching, then you can use a comma-separated value of the dir-specific pattern and extension-based pattern.

For example:

let g:GPGFilePattern = '*.{gpg,asc,pgp},/secret/directory/*'