I have a thesaurus file which contains synonyms for the word iterate
. I would like to add an alternative phrase for iterate
like loop over
so I added it to the thesaurus. Unfortunately, this doesn't work. Vim displays "loop over" as two entries.
This is from :help thesaurus
'thesaurus' 'tsr' string (default "")
global or local to buffer |global-local|
{not in Vi}
List of file names, separated by commas, that are used to lookup words
for thesaurus completion commands |i_CTRL-X_CTRL-T|.
Each line in the file should contain words with similar meaning,
separated by non-keyword characters (white space is preferred).
Maximum line length is 510 bytes.
It looks like whitespace is used to separate entries of the thesaurus. Which is weird because, up until this point, I had only been using a comma-separated list for the thesaurus and that worked fine.
Escaping the space character doesn't work unfortunately.
Does anyone know how I can get a phrase as a thesaurus option for a specific word?