Use proper pattern for g:GPGFilePattern

Per |file-pattern|, autocmds use glob-like syntax for patterns, not
regular expressions.

Signed-off-by: James McCoy <jamessan@jamessan.com>
This commit is contained in:
James McCoy 2019-05-30 21:56:08 -04:00
parent 35d2692139
commit 6219a5a0d7
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ g:GPGHomedir If set, specifies the directory that will be used for
*gnupg-g:GPGFilePattern*
g:GPGFilePattern If set, overrides the default set of file patterns
that determine whether this plugin will be activated.
Defaults to '*.\(gpg\|asc\|pgp\)'.
Defaults to `*.{gpg,asc,pgp}`.
==============================================================================
vim:tw=78:sw=4:ts=8:ft=help:norl:

View File

@ -1,5 +1,5 @@
" Name: gnupg.vim
" Last Change: 2019 Feb 23
" Last Change: 2019 May 30
" Maintainer: James McCoy <jamessan@jamessan.com>
" Original Author: Markus Braun <markus.braun@krawel.de>
" Summary: Vim plugin for transparent editing of gpg encrypted files.
@ -26,7 +26,7 @@ endif
" Section: Autocmd setup {{{1
if (!exists("g:GPGFilePattern"))
let g:GPGFilePattern = '*.\(gpg\|asc\|pgp\)'
let g:GPGFilePattern = '*.{gpg,asc,pgp}'
endif
augroup GnuPG