Search code examples
vimdictionarythesaurus

VIM: Use the working directory in a path setting


Basically, what I'm trying to do is have VIM search for dictionary/thesaurus results using dictionary.txt and thesaurus.txt in the current working directory.

So what I've tried in vimrc is something like:

set thesaurus=:pwd/thesaurus.txt

without much luck.

Has anyone gotten something like this to work?


Solution

  • :set thesaurus=thesaurus.txt seems to work for me. It's already relative to the current working directory.