diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-09-17 21:23:32 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-09-17 21:23:32 +1200 |
commit | b04c7d845cbe95691c284912b6fea35a31addaee (patch) | |
tree | f9676d32b53d092a56a534d1941f87633f5a2973 | |
parent | Move plugin-dependent config to vim/after files (diff) | |
download | dotfiles-b04c7d845cbe95691c284912b6fea35a31addaee.tar.gz dotfiles-b04c7d845cbe95691c284912b6fea35a31addaee.zip |
Separate 'dictionary' and 'thesaurus' settings
-rw-r--r-- | vim/vimrc | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -2,7 +2,7 @@ " Tom Ryder (tejr)’s Literate Vimrc " ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ " -" Last updated: Thu, 17 Sep 2020 09:18:45 UTC +" Last updated: Thu, 17 Sep 2020 09:23:14 UTC " " │ And I was lifted up in heart, and thought " │ Of all my late-shown prowess in the lists, @@ -447,15 +447,6 @@ endif " 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 -" thesaurus data isn’t installed as part of the default ‘install-vim’ target -" in tejr’s dotfiles, but a decent one can be retrieved from my website at -" <https://sanctum.geek.nz/ref/thesaurus.txt>. I got this from the link in -" the :help for 'thesaurus' in v8.1. It’s from WordNet and MyThes-1. I had -" to remove the first two metadata lines from thesaurus.txt, as Vim appeared -" to interpret them as part of the body data. -" set dictionary^=/usr/share/dict/words if s:xdgdatahome !=# '' || !empty(s:xdgdatadirs) execute 'set dictionary^='.option#Escape(join(map( @@ -465,6 +456,18 @@ if s:xdgdatahome !=# '' || !empty(s:xdgdatadirs) \), \ 'option#item#Escape(v:val.''/dictionary.txt'')' \), ',')) +endif + +" In much the same way as 'dictionary', 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 thesaurus data isn’t installed as part of the +" default ‘install-vim’ target in tejr’s dotfiles, but a decent one can be +" retrieved from my website at <https://sanctum.geek.nz/ref/thesaurus.txt>. +" I got this from the link in the :help for 'thesaurus' in v8.1. It’s from +" WordNet and MyThes-1. I had to remove the first two metadata lines from +" thesaurus.txt, as Vim appeared to interpret them as part of the body data. +" +if s:xdgdatahome !=# '' || !empty(s:xdgdatadirs) execute 'set thesaurus^='.option#Escape(join(map( \ extend( \ s:xdgdatahome !=# '' ? [s:xdgdatahome] : [], |