From f32d22cfc91fdf98cb63199dabf6167736d210e9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 9 Jun 2019 16:24:10 +1200 Subject: Check MYVIM more completely before adding to &rtp --- vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 9d32520e..46bbf08f 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -107,7 +107,7 @@ endif " to the first element of the default &runtimepath. If this is the case, " we'll slot it in, having already checked it for troublesome characters. " -if $MYVIM !=# runtimepath[0] +if $MYVIM !=# '' && len(runtimepath) > 0 && $MYVIM !=# runtimepath[0] set runtimepath^=$MYVIM endif -- cgit v1.2.3