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
2 changed files with 3 additions and 3 deletions

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