From 6219a5a0d70dbc10c5e70289a2c400d6d8b62762 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Thu, 30 May 2019 21:56:08 -0400 Subject: [PATCH] Use proper pattern for g:GPGFilePattern Per |file-pattern|, autocmds use glob-like syntax for patterns, not regular expressions. Signed-off-by: James McCoy --- doc/gnupg.txt | 2 +- plugin/gnupg.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/gnupg.txt b/doc/gnupg.txt index eefad91..7297c16 100644 --- a/doc/gnupg.txt +++ b/doc/gnupg.txt @@ -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: diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index dac0302..2921b90 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -1,5 +1,5 @@ " Name: gnupg.vim -" Last Change: 2019 Feb 23 +" Last Change: 2019 May 30 " Maintainer: James McCoy " Original Author: Markus Braun " 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