aboutsummaryrefslogtreecommitdiff
path: root/vim/config/match.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:03:28 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:03:28 +1300
commitcb7bb3d38847c937815297cda39732bff7a2fefb (patch)
treebbbdf519f41a281c8c0bb48486578c8028adc37e /vim/config/match.vim
parentMove paste .vimrc config into subfile (diff)
downloaddotfiles-cb7bb3d38847c937815297cda39732bff7a2fefb.tar.gz
dotfiles-cb7bb3d38847c937815297cda39732bff7a2fefb.zip
Add matching .vimrc config into subfiles
"Matching" here refers to using % as a motion to the matching character or closing statement for a block, as enabled by Vim and enhanced by the optional matchit.vim included with the distribution.
Diffstat (limited to 'vim/config/match.vim')
-rw-r--r--vim/config/match.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/config/match.vim b/vim/config/match.vim
new file mode 100644
index 00000000..5c53d63e
--- /dev/null
+++ b/vim/config/match.vim
@@ -0,0 +1,6 @@
+" Try to run the version of matchit.vim included in the distribution, if there
+" is one; extends % to match more than it does by default
+silent! runtime macros/matchit.vim
+
+" Match all forms of brackets in pairs (including angle brackets)
+set matchpairs=(:),{:},[:],<:>