aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-09 23:14:14 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-09 23:14:14 +1200
commit7706eefde4f88fdbecd1162c6866dd0da574b635 (patch)
tree5c5d695be59e65ceb3cfa535b73fc8dcce950689
parentFlesh out opening comment a bit (diff)
downloaddotfiles-7706eefde4f88fdbecd1162c6866dd0da574b635.tar.gz
dotfiles-7706eefde4f88fdbecd1162c6866dd0da574b635.zip
Explain behaviour of malformed MYVIM
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 1929e74c..7f901d64 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -103,6 +103,9 @@ endif
" older versions of Vim, forbid that character. I haven't found the exact
" patch level that this was fixed yet, nor the true reason for the bug.
"
+" If either of these conditions are meant, throw an error and blank the MYVIM
+" variable so that nothing uses it.
+"
if $MYVIM =~# ','
echoerr 'Illegal comma in user runtime path'
let $MYVIM = ''