From cb7bb3d38847c937815297cda39732bff7a2fefb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 28 Oct 2017 22:03:28 +1300 Subject: 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. --- vim/config/match.vim | 6 ++++++ vim/vimrc | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 vim/config/match.vim 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=(:),{:},[:],<:> diff --git a/vim/vimrc b/vim/vimrc index 3e7aa847..2d60a34e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -54,13 +54,6 @@ set fileformats+=mac " to it; note that it wipes out your z mark, if you happen to use it nnoremap J mzJ`z -" 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=(:),{:},[:],<:> - " Don't show the Vim startup message, I have registered Vim and donated to " Uganda set shortmess+=I -- cgit v1.2.3