I clone the code of vim, and Makefile,but it doesn't work. This may be because of the "configure".The "configure" is a shell script,and it begins with:
However, in my cell phone, it's actually /data/data/com.termux/file/usr/bin/sh.
So, How can I get the configure right, and compile vim successfully?
I want to cmpile vim to add support for python and lua.
You need to run termux-fix-shebang configure to fix the shebang.
Sidenote. vim-python is available as a package you can install with apt install vim-python
However, if you run apt install vim-python, you can only add support for python3, but not pyhton2.
Thank you all the way.
I try the advice, but when I make, the gcc report that there is an error with 'bzero' and 'strings.h'. So how can I fix it?
Vim requires a few patches to run on Termux. It's probably not that easy to compile it on Termux. It might be easier to cross-compile using the existing package sources here (https://github.com/termux/termux-packages/tree/master/packages/vim and https://github.com/termux/termux-packages/tree/master/packages/vim-python) and add support for Lua and Python2 there.
How to use the packages? I cloned it, but have no ideas to use it. Perhaps I should edit the "build.sh"? How to patch the patches.
Thank you very much. I think you
have almost solved my problem.
For these types of question I thinks it's better to use our chat channel at https://gitter.im/termux/termux or #termux on freenode.
thanks. Very usefull
Most helpful comment
You need to run
termux-fix-shebang configureto fix the shebang.Sidenote.
vim-pythonis available as a package you can install withapt install vim-python