Linux system Vim how to install YouCompleteMe plug-in

  

In Linux system, if you want Vim editor to play a bigger role, you need to install some plug-ins for it. For example, the YouCompleteMe plugin (the name is very image). This article will introduce how the Linux system Vim installs the YouCompleteMe plugin.

compiler configuration options:

. /configure --with-features=huge --enable-pythoninterp --enable-python3interp --enable-luainterp --enable-multibyte --enable-sniff --enable-fontset

Install on my machine There are python2.7.5 and python3.3, but the enable-python3interp parameter still doesn't support py3. Somehow, you don't care, YouCompleteMe only requires py2.6 or above.

Installing the vundle plugin

git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

Configuring < in .vimrc Br>

set nocompatible “ be iMproved, required

filetype off ” required

<quo; set the runtime path to include Vundle and initialize

set rtp+= ~/.vim/bundle/vundle/

call vundle#rc()

” alternate, pass a path where Vundle should install plugins

“let path = ‘~/some/path/here’

”call vundle#rc(path)

<quo; let Vundle manage Vundle, required

Plugin ‘gmarik/Vundle’

& rdquo; The following are examples of different formats supported.

<; Keep Plugin commands between here and filetype plugin indent on.

” scripts on GitHub repos

Plugin ‘tpope/vim-fugitive’

Plugin ‘Lokalt Og/vim-easymotion’

Plugin ‘tpope/vim-rails.git’

& ldquo; The sparkup vim script is in a subdirectory of this repo called vim.

” Pass the path to set the runtimepath properly.

Plugin ‘rstacruz/sparkup’, {‘rtp’: ‘vim/’}

“ scripts from http ://vim-scripts.org/vim/scripts.html

Plugin ‘L9’

Plugin ‘FuzzyFinder’

” scripts not on GitHub

Plugin ‘git://git.wincent.com/command-t.git’

& ldquo; git repos on your local machine (ie when working on your own plugin)

Plugin ‘file:///home/gmarik/path/to/plugin’

” . .

filetype plugin indent on “ required

Bundle ‘Valloric/YouCompleteMe’

Save and exit, open vim, type: BundleInstall for automatic installation Previous12Next Page total 2 pages

Copyright © Windows knowledge All Rights Reserved