Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Populates list of all entries in thesaurus #16

Open
redapemusic35 opened this issue May 20, 2019 · 1 comment
Open

Populates list of all entries in thesaurus #16

redapemusic35 opened this issue May 20, 2019 · 1 comment

Comments

@redapemusic35
Copy link

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.

@CaptFrankSolo
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants