From: Simon Ruderich Date: Tue, 20 Nov 2012 22:02:45 +0000 (+0100) Subject: vimrc: Check if 'splitright' is available. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=95544c8b2416ea178887ea7aed81eaedbb1835f5;p=config%2Fdotfiles.git vimrc: Check if 'splitright' is available. Also move it to a the EDITOR section. --- diff --git a/vimrc b/vimrc index 5bc0894..5141f59 100644 --- a/vimrc +++ b/vimrc @@ -105,9 +105,6 @@ if exists('+cryptmethod') set cryptmethod=blowfish endif -" Create new split windows on the right (and not left). -set splitright - " Clear all vimrc-related autocmds. Has to be done here as the vimrc augroup " is used multiple times. Necessary to support reloading the vimrc. if has('autocmd') @@ -236,6 +233,11 @@ endif " (add ! to override)" warning when switching buffers. set hidden +" When splitting vertically put the new window right of the current one. +if has('vertsplit') + set splitright +endif + " DISPLAY SETTINGS