Giter Club home page Giter Club logo

my_vim_conf's Introduction

Thanks for

vundle, my vim configuration can be synchronized between multiple devices.

This repository is migrated from pathogen to vundle, which is able to install plugins automatically. NOTE: Now vundle must be initiated first.

This REPO is for

these people:

  • first, of course, myself
  • new vimer, who does not have enough experience or time to collect some useful plugins themselves.

How to

Let $vimConf be where you store this repository, and git clone this repo to $vimConf.Then link vim and vimrc to your home:

mv ~/.vim ~/.vim_bak
mv ~/.vimrc ~/.vimrc_bak
cd ~
ln -s $vimConf/vim .vim
ln -s $vimConf/vimrc_py .vimrc   # if you write python only
ln -s $vimConf/vimrc_full .vimrc   # if you write C++, go...

Vundle

Initiate vundle

cd $vimConf
git submodule update --init vim/bundle/Vundle.vim

Now, you can use vundle to install vim plugins automatically....

Plugins

Jedi and supertab are recommended for pythoners. If you write python only, just skip YCM installation.

YCM Installation

For Cppers, YCM is recommended. Because it helps completion in not only coding, but also many other editing stuff, although it's heavy... I do not recommend to install automatically YCM with vundle, especially in China... Because of poor accessibility to github, the download rate is usually lower than 200 KiB/s. In consequence, automated installation might be failed, and a manual installation tells you where you failed... To avoid this, an git proxy or manual installation is suggested.

I'll show you how to install it manually:

cd $vimConf
git submodule update --init vim/bundle/YouCompleteMe # clone YCM

cd vim/bundle/YouCompleteMe
git submodule update --init --recursive # clone dependent modules

NOTE that YCM is not fully installed yet! For more functions, such as C++ navigation and completion, you need to go to YouCompleteMe to find proper instructions for your language. Because it depends tightly on your linux distribution and language, these instructions are not listed here.

Here are some tips during installation of YCM:

  • You'd better install/compile vim8 with python support. For ubuntu 14, there are some PPAs providing vim8 binary; For centos, I compiled it from sources...
  • For CPPer, packages like cmake and python-dev must be installed;
  • Very Important: If your vim support python2 execute install.py with python2; The same to python3.
  • If you are not CPPer, don't add "--clang-completer" option to save time.

Other Plugins Installation

After installation of YCM, installing other plugins should be much easier. Enter vim, switch to command mode and use command:

:PluginInstall

to install other plugins (such as jedi, and badwolf).

Tmux

If you use tmux and use Ctrl+A for instruction escape.

cd $vimConf
git submodule update --init tmux
cd ~
mv ~/.tmux.conf ~/.tmux.conf_bak
ln -s $vimConf/tmux/.tmux.conf .

FAQ

  1. After YCM installed, why my vim says " YCM error. The ycmd server SHUT DOWN (restart wit…the instructions in the documentation "? A: First you should have your pluginInstall finished, then go to $vimConf/bundle/YouCompleteMe
python install.py

to see if you have any dependency pack missing. After I installed cmake, things went well. (https://stackoverflow.com/questions/47667119/ycm-error-the-ycmd-server-shut-down-restart-wit-the-instructions-in-the-docu)

my_vim_conf's People

Contributors

leepoly avatar shinezyy 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.