1

I am using GVim on Windows. I am trying to use Thesaurus completion using Ctrl + x + Ctrl + t. But it gives me the following error.

enter image description here

I have added the thesaurus file path in my _vimrc file.

enter image description here

And the mthesaur.txt is available at that location.

BTW, The insert mode completions such as keyword completion (Ctrl + x + Ctrl + n) and file completion (ctrl + x + ctrl + f) work fine.

I want to avoid using any Vim plugins for this inbuilt functionality.

CDspace
  • 2,639
  • 18
  • 30
  • 36
NotepadPlusPlus PRO
  • 987
  • 1
  • 8
  • 21
  • When you say `in my _VIMRC file`, do you mean `C:\Users\username\_vimrc` (note the capitalization)? – romainl Feb 15 '17 at 15:18
  • Yes. I meant `_vimrc`. It is at the right location. I have tons of customizations and plugins in my vimrc file, which works. So, reading from `_vimrc` is not an issue. Thanks. – NotepadPlusPlus PRO Feb 15 '17 at 15:48
  • While running vim, what is the output of ":verbose set thesaurus"? Maybe it's getting overridden after you set it in your config. – Randy Morris Feb 15 '17 at 16:25
  • @RandyMorris, it says `thesaurus=c:/users/myusername/mthesaur.txt Last set from ~\_vimrc`. So it looks right. – NotepadPlusPlus PRO Feb 16 '17 at 14:49

1 Answers1

1

Use Windows pathing with backslashes, like this:

set thesaurus+=C:\my\user\mthesaurus.txt

This answer was actually mentioned in the comments...

odCat
  • 98
  • 8
  • 1
    I should apologize to the previous answer'ers. I had ` set wildignore+=*.txt` in the VIMRC that is the reason why the thesaurus text file was ignored. I removed it and it worked. Thank you for resurrecting this post. – NotepadPlusPlus PRO Jan 02 '19 at 19:18