From 8ef3a5afe3839bb9981b3ddf4f62b92bc065051e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 12 Sep 2020 17:26:59 +1200 Subject: Remove outdated comment on 'dictionary' setting --- vim/vimrc | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'vim') 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( -- cgit v1.2.3