aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc7
1 files changed, 5 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 96a7c593..a96503b4 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -89,8 +89,11 @@ endif
"
" 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'
+" Similarly, the 'thesaurus' option, and possibly others, won't accept a path
+" with a pipe in its name, so don't allow that, either.
+"
+if $MYVIM =~# '[,|]'
+ echoerr 'Illegal characters in $MYVIM path'
finish
endif