diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 01:19:39 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 01:19:39 +1200 |
commit | e6e564a29c618b4dfd158b5ba2b1cfb549fe41a6 (patch) | |
tree | 64323465a6aabbf1da8dd1bdfd702575b5541b3d | |
parent | Adjust layout of 'runtimepath' split code (diff) | |
download | dotfiles-e6e564a29c618b4dfd158b5ba2b1cfb549fe41a6.tar.gz dotfiles-e6e564a29c618b4dfd158b5ba2b1cfb549fe41a6.zip |
Adjust comma comment
-rw-r--r-- | vim/vimrc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -80,15 +80,16 @@ endif " The path named in the MYVIM environment variable can't contain a comma " anywhere, because its use in comma-separated option values will confuse Vim -" into thinking more than one directory is being specified for the option -" value, per normal :set semantics. If there's a comma, we raise an error and -" end the script. +" into thinking more than one directory is being specified, per normal :set +" semantics. " " It's possible to work around this with some careful escaping, either at :set " time with an :execute abstraction or with a separate environment variable " for that particular context, but it's not really worth the extra complexity " for such a niche situation. " +" So, if there's a comma, we just raise an error and end the script. +" if stridx($MYVIM, ',') != -1 echoerr '$MYVIM contains a comma, refusing to proceed' finish |