|author||Tom Ryder <email@example.com>||2020-09-12 17:26:59 +1200|
|committer||Tom Ryder <firstname.lastname@example.org>||2020-09-12 17:26:59 +1200|
|parent||Set '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
@@ -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
" 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.
if s:xdgdatahome !=# '' || !empty(s:xdgdatadirs)
execute 'set dictionary^='.option#Escape(join(map(