Reputation: 2002
So I installed pydiction into vim for autocompleting my python code in windows. No problemo. Worked like a charm.
Tried the same thing with my Ubuntu setup, creating the .vim/after/ftplugin directory in my home folder and updating the vimrc with the correct path of the pydiction dictionary but I fail every time. Why is that ? I follow the readme.txt closely , I even found a webpage that describes the process on ubuntu again repeating the same things , nothing.
Each time I tab after i type "raw" while it worked in windows in ubuntu it reports "Dictionary Completion (^K^N^P) Pattern not Found". Tried other keyword , same problem. Anyone has an idea why this happens ?
Upvotes: 1
Views: 2123
Reputation: 1
That's the way my same problem i solve: before i get this problem - i was set the path only to directory and that's was wrong After i set the path Including the filename it starts work!
Upvotes: 0
Reputation: 2002
Problem has been solved, apparently gvim did not like the fact that i put the files in a ".vim" directory even though that was exactly what the instructions told me to do. I put them in my home folder pydiction.vim and complete-dictionary and now it works ok, with no issues.
Now autocomplete works with any word I tried it with. I am abit confused with gvim , as the instructions said to create ".vim" directory but I have also found a vimfiles directory in a etc folder. Why vim structure is so confusing? Maybe the manual should clarify directory structure to avoid confusing. Now I use a source command to load pydiction.vim from my home folder and setup the vimrc properly to point to the new paths.
At least I solved my problem myself , thanks for all replies.
Upvotes: 1
Reputation: 2524
Sounds like it's having a problem with your complete-dict file. I'm using Ubuntu 10.04 and it works fine for me. Make sure your complete-dict file actually has content in it, in this case make sure it has the word 'raw' in it.
Upvotes: 0