vim-lexical icon indicating copy to clipboard operation
vim-lexical copied to clipboard

Populates list of all entries in thesaurus

Open redapemusic35 opened this issue 5 years ago • 1 comments

I cannot figure out what I am doing wrong. Using the thesaurus command only populates a list of the entire file. It is not suggesting only synonyms of the highlighted word.

redapemusic35 avatar May 20 '19 16:05 redapemusic35

Sorry I just spend longer than I care to admit on the same problem and am posting here so dreadfully late to be useful to you so that hopefully somebody else does not. You probably need to massage the referenced moby thesaurus into a format VIM can handle. It needs to be space separated which means all the terms with spaces will drop out of the file (4900+) via ":g/^\w+ [^,]+,/d". And all suggestions with spaces (292000+!!) via ":%s/,\w+ [^,]+,/,/g". And finally convert commas to spaces via ":%s/,/ /g". Don't worry though at least on windows vim is so ridiculously slow searching the thesaurus you won't be able to use a file this large.

CaptFrankSolo avatar Jan 03 '21 01:01 CaptFrankSolo