From 9e4fac3d6b77efb49dc4404eb3aa2416a05745d9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 9 Jun 2019 01:18:28 +1200 Subject: Adjust layout of 'runtimepath' split code The split pattern variable wasn't getting set if the environment variable was set. --- vim/vimrc | 59 ++++++++++++++++++++++++++++++----------------------------- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 921acbed..35e838be 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -32,6 +32,32 @@ set runtimepath-=/var/lib/vim/addons set runtimepath-=/var/lib/vim/addons/after +" Splitting the values of a comma-separated option like 'runtimepath' +" correctly, which we'll need to do a few times throughout this file, is a bit +" more complicated than it seems. The list separator is more accurately +" defined as a comma that is not preceded by a backslash, and which is +" followed by any number of spaces and/or further commas. +" +" The pattern required for the split breaks down like this: +" +" \\ Literal backslash +" \@