aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-10 01:34:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-10 01:56:46 +1200
commit0aec3c00a6c662e94474c3556d7ebd5ef9af7400 (patch)
tree9bd07539685be972c04b70991b23001a54b7f058 /vim
parentMerge branch 'release/v1.25.0' into develop (diff)
downloaddotfiles-0aec3c00a6c662e94474c3556d7ebd5ef9af7400.tar.gz
dotfiles-0aec3c00a6c662e94474c3556d7ebd5ef9af7400.zip
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.
Diffstat (limited to 'vim')
-rw-r--r--vim/after/ftplugin/perl.vim5
-rw-r--r--vim/vimrc3
2 files changed, 5 insertions, 3 deletions
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
diff --git a/vim/vimrc b/vim/vimrc
index 3678e375..73b71646 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -98,9 +98,6 @@ if v:version >= 700
set listchars+=nbsp:+ " Non-breaking spaces
endif
-" Add angle brackets to pairs of matched characters
-set matchpairs+=<:>
-
" Don't allow setting options via buffer content
set nomodeline