path: root/vim
diff options
authorTom Ryder <tom@sanctum.geek.nz>2020-09-12 17:26:59 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-09-12 17:26:59 +1200
commit8ef3a5afe3839bb9981b3ddf4f62b92bc065051e (patch)
tree5cfcff2187c8afb9d312902d2bff7231ac2aa1e8 /vim
parentSet 'backupskip', and have g:undofileskip copy it (diff)
Remove outdated comment on 'dictionary' setting
Diffstat (limited to 'vim')
1 files changed, 2 insertions, 11 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 598e8bec..ef02a401 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -442,8 +442,8 @@ endif
" At some point, I may end up having to set this option along with 'spellfile'
" a bit more intelligently to ensure that spell checking and dictionary
" function consistently, and with reference to the same resources. For the
-" moment, I’ve just added another entry referring to a directory in the user
-" runtime directory, but I don’t have anything distinct to put there yet.
+" moment, I’ve just added additional entries referring to the user runtime
+" directory.
" In much the same way, we add an expected path to a thesaurus, for completion
" with CTRL-X CTRL-T in insert mode, or with ‘t’ added to 'completeopt'. The
@@ -454,15 +454,6 @@ endif
" to remove the first two metadata lines from thesaurus.txt, as Vim appeared
" to interpret them as part of the body data.
-" Extra checks for appending the 'dictionary' and 'thesaurus' paths need to be
-" made, because the P_NDNAME property is assigned to them, which enforces
-" a character blacklist in the option value. We check for the expected Vim
-" error code here, and if the path offends, we just skip the setting entirely,
-" rather than throwing cryptic errors at the user. None of the blacklisted
-" characters are particularly wise characters to have in paths, anyway, legal
-" though they may be on Unix filesystems. We can’t work around this one with
-" 'isfname'; the blacklist is hard-coded.
set dictionary^=/usr/share/dict/words
if s:xdgdatahome !=# '' || !empty(s:xdgdatadirs)
execute 'set dictionary^='.option#Escape(join(map(