From 2fffc92f14d2f50cde4f76c9952bb90812861ccf Mon Sep 17 00:00:00 2001 From: "Andy K. Massimino" Date: Fri, 3 Aug 2018 08:21:38 -0400 Subject: [PATCH] Add xml tagnameonly matchpref re #30 --- after/ftplugin/xml_matchup.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 after/ftplugin/xml_matchup.vim diff --git a/after/ftplugin/xml_matchup.vim b/after/ftplugin/xml_matchup.vim new file mode 100644 index 0000000..90170dc --- /dev/null +++ b/after/ftplugin/xml_matchup.vim @@ -0,0 +1,18 @@ +" vim match-up - matchit replacement and more +" +" Maintainer: Andy Massimino +" Email: a@normed.space +" + +let s:save_cpo = &cpo +set cpo&vim + +if matchup#util#matchpref('tagnameonly', 0) + call matchup#util#patch_match_words('\)\%(', '\)\g{hlend}\%(') + call matchup#util#patch_match_words('\)\%(', '\)\g{hlend}\%(') +endif + +let &cpo = s:save_cpo + +" vim: fdm=marker sw=2 +