zoukankan      html  css  js  c++  java
  • centos 7 编译 vim

    1. 下载 vim 源代码

    ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2

    2. 安装前的准备

    安装 libncurses5-dev

    在 centos7 中的安装方法是:

    yum install ncurses

    yum install ncurses-libs

    yum install ncurses-devel

    3. 配置 vim 编译选项

    开启 python, 在 vim74/src 目录下执行下面的命令

    ./configure --enable-pythoninterp=yes --with-python-config-dir=/usr/lib64/python2.6/config  

     ./configure  --enable-luainterp --with-lua-prefix=/usr  --enable-pythoninterp=yes --with-python-config-dir=/usr/lib64/python2.6/config 
     ./configure  --with-features=huge --enable-luainterp --with-lua-prefix=/usr  --enable-pythoninterp=yes --with-python-config-dir=/usr/lib64/python2.6/config 

    4. 编译 vim

    cd vim74

    make

    5. 安装 vim

    make install

    6. 卸载

    make uninstall

    7. 安装好之后配置

    :set nocp " vim 默认是兼容vi 的(所以在命令模式下敲tab键,不会进行命令补全),所以取消兼容

    :syntax enable " 启用语法高亮

     补充:

    装了python、python3、lua(如5.1)、ruby外,还需要安装对应的
    python-dev, python3-dev, liblua5.1-dev, ruby-dev
    (如果需要perl,加一个libperl-dev)
    详细配置
    --enable-python3interp=yes --with-python3-config-dir=/usr/lib/python3.2/config
    --enable-pythoninterp=yes --with-python-config-dir=/usr/lib/python2.7/config
    --enable-perlinterp=yes
    --enable-luainterp=yes --with-lua-prefix=/usr
    --enable-rubyinterp=yes --with-ruby-command=/usr/bin/ruby
    ------------------------------------------------------
    记住最好make distclean
    prefix=/usr是指执行文件在对应的/bin里,如果可执行文件在在XXX/bin/里,改为XXX即可
    --------------------------------------------------------
    如果还有报错看看config对应报错的即可

    https://www.evernote.com/shard/s258/sh/8f17d13f-5040-45b4-a312-294ef7304fe5/c0c182567f72325da680fb38d66436ae

  • 相关阅读:
    log4j(二)——如何控制日志信息的输出?
    Java生成指定范围内的工具类
    JavaBean和Map转换封装类
    cron表达式详解
    数据库主键按照固定前缀生成工具类
    邮件发送工具类
    NFC
    牛逼辩论
    快速排序
    希尔排序
  • 原文地址:https://www.cnblogs.com/a-ray-of-sunshine/p/4925498.html
Copyright © 2011-2022 走看看