问题描述:
vim7.4 配置python2.6支持Gundo
参考资料:
(1) http://sjl.bitbucket.org/gundo.vim/
(2) http://www.vim.org/news/news.php
(3)http://stackoverflow.com/questions/18370234/compile-vim7-4-source-code-with-python-support-failed
问题解决:
步骤:
(1)升级vim7.4,配置Python2.6
(2)支持Gundo
说明:
Gundo参考站点: http://sjl.bitbucket.org/gundo.vim/
Gundo is a plugin to make browsing this ridiculously powerful undo tree less painful.
(1)升级vim 7.4
vim7.4 下载地址: http://www.vim.org/news/news.php
查看Python版本:Python –version #我的版本为Python 2.6.5
查看Python配置文件的位置:locate python | grep ‘/config$’
准备工作:
(1)安装python-dev 【Python development packages】
(2)配置vim 7.4 支持Python2.6
(3)出错提示:
解决方案:
安装一个terminal library ,apt-get install libncurses5-dev
(2)安装vim7.4
步骤:
1、./configure --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.6/config
2、make
3、make install
(3)安装配置Gundo
说明:
Gundo作为Vim的插件,将在下一节中统一讲解,vim插件安装与配置