diff options
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |