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=(:),{:},[:],<:>
/cgit/dotfiles.git/commit/perlcritic/perlcriticrc?h=v1.33.0&id=c46f068c84863cb9c9ce13392a94765d8e8facd4'>c46f068c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
           
                 




                                                                             
 
                                                               
                              
                                      
 



                                                                       


                                                   


                                                                            
                                            
                                         
# No mercy!
severity = brutal

# I flatly disagree with this policy; sometimes bitwise operators are in fact
# what I want, and I don't have the problem of using | instead of || as the
# policy documentation suggests
[-Bangs::ProhibitBitwiseOperators]

# Add some networking terms to the list of legal numbered names
[Bangs::ProhibitNumberedNames]
add_exceptions = inet4 inet6 ipv4 ipv6

# I'll keep code running for old Perls, but users are on their own with
# documentation, so allow e.g. L<http://...> on Perl 5.6
[-Compatibility::PodMinimumVersion]

# This one causes more trouble than it's worth, too
[-Documentation::RequirePODUseEncodingUTF8]

# Soften this rather harsh policy a fair bit; tolerate negative one, all the
# single-digit integers as literals, three powers of 10 (for percentages,
# milliseconds etc), and 1900 (for localtime)
[ValuesAndExpressions::ProhibitMagicNumbers]
allowed_values = -1 0..9 10 100 1000 1900