VIM 7.3 with Python 2.6 on CentOS 5.x

I’ve been a OSX user for some time, but my main C development happens on CentOS. OSX has TextMate as editor, which has snippets : A sort of runtime macro’s on steroids. It saves lots of time with common language constructs such as loops.

Vim has a UltiSnips, but that has some preconditions : It need vim 7.3 with Python >= 2.6 compiled in. CentOS has neither of them. You can’t just upgrade Python on a CentOS machine, since lots of things (yum being one of them) depend on a specific version. So if you overwrite the default version, all hell will brake loose.

I’ve created packages for both Python and Vim (x86 and srpms), available at http://www.palsenberg.com/rpmrepo/

Happy VIMming !!!

Be Sociable, Share!
This entry was posted in CentOS, Personal. Bookmark the permalink.

7 Responses to VIM 7.3 with Python 2.6 on CentOS 5.x

  1. alex says:

    Hi, Im trying to install from your repo:
    Error: Missing Dependency: libffi.so.5 is needed by package python2.7-2.7.2-2.i386 (vim73)
    in on Centos5 VPS
    What do u think about it?
    thanks

  2. I’ve updated the Python RPM’s to work without libffi installed.

    Igmar

  3. alex says:

    Hi, now Im retrying to install vim with your rpm’s but still I cannot install anything:
    whatever I try to install give me back:
    Failed dependencies:
    libpython2.7.so.1.0 is needed by python2.7-2.7.2-3.i386

    python2.7 = 2.7.2-3 is needed by python2.7-libs-2.7.2-3.i386

    Where do I have to start to install these packages and have a working Vim with Python support?
    thanks!

  4. alex says:

    that was a dumb question,
    I switched on my brain and solved by simply rpm both package in a single command. ;)
    thanks for your work,
    u saved me a lot of time not rebuilding vim from scratch once again.
    Alessandro

  5. freeyoung says:

    Hi,

    Thanks a lot for providing the repo!

    However, I think it’s the time to upgrade python-2.7.2 to 2.7.3 now :)

  6. freeyoung says:

    As for python-2.7.3, I think this URL would be of great help:

    http://bugs.python.org/issue14572

  7. I’ll update those RPM’s today.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>