问题描述:

         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.

      【Python】vim7.4 配置python2.6支持Gundo

(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$’

       【Python】vim7.4 配置python2.6支持Gundo

         

         准备工作:

             (1)安装python-dev 【Python development packages】

              【Python】vim7.4 配置python2.6支持Gundo

 

             (2)配置vim 7.4 支持Python2.6

              【Python】vim7.4 配置python2.6支持Gundo

 

               (3)出错提示:

               【Python】vim7.4 配置python2.6支持Gundo

             

                  解决方案:

                         安装一个terminal library ,apt-get install libncurses5-dev

                【Python】vim7.4 配置python2.6支持Gundo

 

   (2)安装vim7.4

           步骤:

                1、./configure --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.6/config

                2、make

                3、make  install

                【Python】vim7.4 配置python2.6支持Gundo

 

    (3)安装配置Gundo

           说明:

               Gundo作为Vim的插件,将在下一节中统一讲解,vim插件安装与配置

相关文章:

  • 2021-12-19
  • 2021-08-31
  • 2021-08-16
  • 2021-11-03
  • 2021-11-03
  • 2021-06-10
  • 2021-05-01
  • 2021-10-27
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2022-02-03
  • 2021-06-11
  • 2021-12-26
  • 2021-10-04
  • 2018-04-10
相关资源
相似解决方案