Using vim and when I try use omnicomplete for python I get an error
Required vim compiled with +python.
When I try
:python print 'hello'
I get
E370: Could not load library python26.dll
Strangely I'm using python 2.7 anyway so how can I change what python vim should use or will I have to install python 2.6 to use this feature?
You have to have the same version of python installed that vim was compiled against. That means you either need to install 2.6 or recompile vim against 2.7 (or find an existing binary that already is).