0

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?

BraedenP
  • 7,125
  • 4
  • 33
  • 42

2 Answers2

1

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

Itay Perl
  • 12,844
  • 3
  • 18
  • 12
0

You should try with a dot:

set thesaurus=./thesaurus.txt

See :help path.

romainl
  • 186,200
  • 21
  • 280
  • 313
  • Actually I'm wrong. `./something` means roughly "in the same directory as the current file" which may or may not be the same directory as the working directory. – romainl Feb 18 '12 at 08:36