aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-09 23:15:59 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-09 23:15:59 +1200
commit64bd14e1d7bd2f272371c2b90bdc73704e730f2b (patch)
tree9f832198095a802cb481565390a9596eb3dfaa39
parentExplain 'dictionary' approach (diff)
downloaddotfiles-64bd14e1d7bd2f272371c2b90bdc73704e730f2b.tar.gz
dotfiles-64bd14e1d7bd2f272371c2b90bdc73704e730f2b.zip
Add P_NDNAME exclusion checks to 'dict' and 'tsr'
-rw-r--r--vim/vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 71e1179e..1267e283 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -439,7 +439,7 @@ set cpoptions+=J
" it doesn't.
"
set dictionary^=/usr/share/dict/words
-if $MYVIM !=# ''
+if $MYVIM !=# '' && $MYVIM !=~ '[*?[|;&<>\r\n]'
set dictionary^=$MYVIM/ref/dictionary.txt
endif
@@ -697,7 +697,7 @@ set synmaxcol=500
" first two metadata lines from thesaurus.txt, as Vim appeared to interpet
" them as part of the body data.
"
-if $MYVIM !=# ''
+if $MYVIM !=# '' && $MYVIM !=~ '[*?[|;&<>\r\n]'
set thesaurus^=$MYVIM/ref/thesaurus.txt
endif