I am using gVim with Windows 7.
I am trying to run a python script using the pyfile % command, but every time I do so, I get ImportError: No module named libtcodpy
Checking the location of the libtcodpy, it is indeed in the same folder as the script I am trying to run. Furthermore, running the program with the python IDE works fine. 
What am I doing wrong?
Vim does not automatically search the current script's directory for imports, only some configured ones (cp. :help python-_get_paths), and the current working directory.
So, you either need to configure the current script's path, or simply :cd %:h to it (alternatively automatically via :set autochdir).
gVim ImportErrror: module not found, even though module is in same folder as script