Giter VIP home page Giter VIP logo

vimrc's Introduction

vimrc

required

  • vim8 or neovim
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
git clone https://github.com/vim/vim.git
./configure --with-features=huge --enable-multibyte --enable-rubyinterp=yes --enable-pythoninterp=yes --with-python-config-dir=/usr/lib64/python2.7/config/ --enable-python3interp=yes --prefix=/usr/local/vim8
make && make install
mv /usr/bin/vim /usr/bin/vim.bak
ln -s /usr/local/vim8/bin/vim /usr/bin/vim
  • python3
## 废弃
wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz
tar -zxvf Python-3.6.8
./configure prefix=/usr/local/python3 --enable-shared
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
## 改用直接通过软件源安装
yum install epel-release -y
yum install https://centos7.iuscommunity.org/ius-release.rpm -y
yum install python3
yum install python3-devel
## python2.7 可能同样没有添加到vim的支持里需要安装devel
yum install python-devel

config

  • git clone ...
  • ./setup.sh
  • vim vimrc
  • :PlugInstall

issue

  • 安装python3后运行出现python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
    • /etc/ld.so.conf.d 下,建立 python3.conf
    • python3.conf 中加入:/usr/local/python3/lib
    • ldconfig
  • 编译youCompleteMe:c++: internal compiler error:killed(program cc1plus)
    • dd if=/dev/zero of=/root/swapfile bs=1M count=1024
    • mkswap /root/swapfile
    • swapon /root/swapfile
    • vim /etc/fstab 添加:/root/swapfile swap swap defaults 0 0
  • 启动vim崩溃
    • 一般是plug出错
    • 重新编译youCompleteMe
  • 手动编译ycm
    • ./install.py --clang-completer --go-completer --java-completer

vimrc's People

Contributors

sictiy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.