From 0aec3c00a6c662e94474c3556d7ebd5ef9af7400 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 10 Jul 2018 01:34:43 +1200 Subject: Move angle-bracket matchpairs to Perl filetype This is the only type I can think of where they're actually useful; in HTML, it's annoying having to be over the tag text to get the matching. --- vim/after/ftplugin/perl.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vim/after') diff --git a/vim/after/ftplugin/perl.vim b/vim/after/ftplugin/perl.vim index c17ebb56..dd5285e3 100644 --- a/vim/after/ftplugin/perl.vim +++ b/vim/after/ftplugin/perl.vim @@ -12,6 +12,11 @@ let b:undo_ftplugin = b:undo_ftplugin \ . '|setlocal errorformat<' \ . '|setlocal makeprg<' +" Add angle brackets to pairs of matched characters for q<...> +setlocal matchpairs+=<:> +let b:undo_ftplugin = b:undo_ftplugin + \ . '|setlocal matchpairs<' + " Stop here if the user doesn't want ftplugin mappings if exists('g:no_plugin_maps') || exists('g:no_perl_maps') finish -- cgit v1.2.3