Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fix native Cygwin Vim Python support

After installing the python-mode plugin for Vim on my Linux machine, I am getting the following error message on my Windows machine with Cygwin using the same .vim folder:

pymode.vim required vim compiled with +python.

So basically I need to compile Vim by my own with Python support, like explained in the question compiling vim with python support?

This would be quite annoying, does someone know alternatives? After all Windows Vim seems to support Python.

like image 352
Mahoni Avatar asked Dec 04 '22 13:12

Mahoni


1 Answers

I am afraid, that is the only way to fix it. Unpleasant, but at least doable with only a few lines:

$ hg clone https://vim.googlecode.com/hg/ vim
$ cd vim/src
$ ./configure \
--enable-multibyte \
--without-x \
--enable-gui=no \
--enable-pythoninterp

$ make
$ make install
$ ln -sf /usr/local/bin/vim.exe /usr/bin/vim

Make sure you have installed libncurses-devel for Cygwin beforehand.

like image 174
Konrad Reiche Avatar answered Dec 20 '22 06:12

Konrad Reiche