diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-16 17:52:40 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-16 17:52:40 +1200 |
commit | 4ed9dca069e746c5b2857d31f1f7f2f7cbcbd6e0 (patch) | |
tree | 7b6a8db30970651b3491fe0872316282c09defe6 /vim/vimrc | |
parent | Merge branch 'release/v6.16.0' into develop (diff) | |
download | dotfiles-4ed9dca069e746c5b2857d31f1f7f2f7cbcbd6e0.tar.gz dotfiles-4ed9dca069e746c5b2857d31f1f7f2f7cbcbd6e0.zip |
Turn on 'showmatch' if matchparen.vim not there
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -805,6 +805,16 @@ set sessionoptions-=options " No global options or mappings " set shortmess+=I +" We'll only use the old 'showmatch' method of a brief jump to the matching +" bracket under the cursor if the much-preferred matchparen.vim standard +" plugin doesn't look like it's going to load, whether because plugins have +" been disabled, or it's not in any of the plugin directories. +" +if !&loadplugins + \ && globpath(&runtimepath, 'plugin/matchparen.vim') !=# '' + set showmatch matchtime=3 +endif + " I find the defaults of new windows opening above or to the left of the " previous window too jarring, because I'm used to both the i3 window manager " and the tmux terminal multiplexer doing it the other way around, in reading |