From 90ac35e462086110ddb507648daa9c56c5120d9e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 16 Jun 2019 14:19:19 +1200 Subject: Break up long conditions again I'm having some trouble deciding how I want to do these. --- vim/vimrc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 2175f114..0a95d1a9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -150,8 +150,10 @@ endif " " " -if $MYVIM =~# '\\' - \ && (v:version < 701 || v:version == 701 && !has('patch55')) +if $MYVIM =~# '\\' && ( + \ v:version < 701 + \ || v:version == 701 && !has('patch55') + \ ) echoerr 'Illegal backslash in user runtime path on Vim < v7.1.055' finish endif @@ -492,7 +494,8 @@ set shiftwidth=4 " Indent command like < and > use four-space indents " " " -if v:version > 730 || v:version == 730 && has('patch693') +if v:version > 730 + \ || v:version == 730 && has('patch693') set softtabstop=-1 else let &softtabstop = &shiftwidth @@ -622,7 +625,8 @@ set formatoptions+=1 " " " -if v:version > 730 || v:version == 730 && has('patch541') +if v:version > 730 + \ || v:version == 730 && has('patch541') set formatoptions+=j endif @@ -1074,7 +1078,8 @@ nnoremap " If the plugin isn't available, I just abandon CTRL-C to continue its " uselessness. " -if &loadplugins && globpath(&runtimepath, 'plugin/insert_cancel.vim') !=# '' +if &loadplugins + \ && globpath(&runtimepath, 'plugin/insert_cancel.vim') !=# '' imap (InsertCancel) endif -- cgit v1.2.3