zoukankan      html  css  js  c++  java
  • kali下安在vim

    1. 下载vim

    git clone https://github.com/vim/vim.git
    git pull
    git fetch

    2. 配置(How to enable +python feature in vim  [--enable-pythoninterp])

    ./configure --enable-multibyte  --enable-rubyinterp=dynamic --with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/  --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ --enable-pythoninterp  --enable-cscope --enable-gui=auto --with-features=huge --with-x --enable-fontset --with-compiledby=yugengde --enable-fail-if-missing

    3. 编译安装

    make
    make install

    注意的问题

    (1)如果安装失败, 就将之前安装的软件进行卸载

    make clean
    make distclean
    make uninstall

    (2)替换之前的符号链接

    rm /usr/bin/vim
    ln -s /usr/local/bin/vim /usr/bin/vim

     (3)打开vim,终端出现

    The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). YCM core li...ompile YCM before using it. Follow the instructions in the documentation.

    apt-get install cmake
    cd ~/.vim/bundle/YouCompleteMe/
    ./install.sh

     (4)使用tab补全时出现   E121: Undefined variable: g:pydiction_location

    cd ~/.vim/bundle/
    git clone https://github.com/rkulla/pydiction.git 

    编辑.vimrc文件

    filetype plugin on 
    
    let g:pydiction_location = '~/.vim/bundle/Pydiction/complete-dict'
  • 相关阅读:
    unalias---取消命令别名
    alias---设置别名
    type---显示指定命令的类型
    logout命令用于退出当前登录的Shell
    enable&&builtin---shell内部命令
    read---读取变量值
    readonly&&declare&&unset &&export&&env环境变量
    fc---输出历史命令列表
    command---调用指定的指令并执行
    terminfo 数据库?
  • 原文地址:https://www.cnblogs.com/yugengde/p/8638829.html
Copyright © 2011-2022 走看看