4

I'm trying to add Pydiction into MacVim, I followed the readme file.

Put python_pydiction.vim in ~/.vim/after/ftplugin/ and write:

let g:pydiction_location = '~/pydiction/complete-dict'

into my .vimrc file. But when I press tab in MacVim, an error will rise:

undefined variable g:pydiction_location

Can anyone tell me where am I wrong ?

sidyll
  • 57,726
  • 14
  • 108
  • 151
Steven Yue
  • 966
  • 1
  • 8
  • 16

2 Answers2

1

As discussed in the comments, you were editing a file that wasn't actually your .vimrc file. You may have typed:

:e vimrc
:e ~/vimrc
:e .vimrc

none of which will probably edit your actual .vimrc file. It must have a dot in front of it AND be located in your home directory. You can also type :pwd in vim to see the current working directory. If you do :e .vimrc it will create a new file in whatever directory you are in if it doesn't exist.

Andy Ray
  • 30,372
  • 14
  • 101
  • 138
0

Do you use NERDTree? If so it seems that Pydiction and NERDTree conflict with each other in some way.

shalakhin
  • 4,586
  • 5
  • 25
  • 30