国产片侵犯亲女视频播放_亚洲精品二区_在线免费国产视频_欧美精品一区二区三区在线_少妇久久久_在线观看av不卡

服務器之家:專注于服務器技術及軟件下載分享
分類導航

Linux|Centos|Ubuntu|系統進程|Fedora|注冊表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服務器之家 - 服務器系統 - Linux - Linux系統Vim編輯器如何安裝YouCompleteMe插件?

Linux系統Vim編輯器如何安裝YouCompleteMe插件?

2019-09-04 13:46服務器之家 Linux

Linux系統中想要讓Vim編輯器發揮更大的作用,就要對它安裝一些插件,比如說YouCompleteMe插件,本文就來介紹Linux系統Vim如何安裝YouCompleteMe插件的相關內容

Linux系統Vim編輯器如何安裝YouCompleteMe插件?

  編譯配置選項:

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

  在我的機器上裝有python2.7.5 和 python3.3, 但加了enable-python3interp參數依然沒有支持py3,不知何故,先不管,YouCompleteMe 只要求有py2.6以上。

  安裝vundle插件

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

  在.vimrc中配置

  set nocompatible “ be iMproved, required

  filetype off ” required

  “ set the runtime path to include Vundle and initialize

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

  call vundle#rc()

  ” alternatively, pass a path where Vundle should install plugins

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

  ”call vundle#rc(path)

  “ let Vundle manage Vundle, required

  Plugin ‘gmarik/vundle’

  ” 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 ‘Lokaltog/vim-easymotion’

  Plugin ‘tpope/vim-rails.git’

  “ 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’

  “ git repos on your local machine (i.e. when working on your own plugin)

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

  ” 。。。

  filetype plugin indent on “ required

  Bundle ‘Valloric/YouCompleteMe’

  保存退出,打開vim,輸入 :BundleInstall 進行自動安裝

  進程如下,+號表示已經安裝,》表示正在安裝

  。 Plugin ‘gmarik/vundle’ |~

  + Plugin ‘tpope/vim-fugitive’ |~

  + Plugin ‘Lokaltog/vim-easymotion’ |~

  + Plugin ‘tpope/vim-rails.git’ |~

  + Plugin ‘rstacruz/sparkup’ |~

  + Plugin ‘L9’ |~

  + Plugin ‘FuzzyFinder’ |~

  》 Plugin ‘git://git.wincent.com/command-|~

  t.git’ |~

  Plugin ‘file:///home/gmarik/path/to/pl|~

  ugin’ |~

  Plugin ‘Valloric/YouCompleteMe’ |~

  Helptags

  備注:結束時有個錯誤,這是正常的,因為ycm需要手工編譯出庫文件

  Done! With errors; press l to view log

  ycm_client_support.[so|pyd|dll] and ycm_core.[so|pyd|dll] not detected; you need

  to compile YCM before using it. Read the docs!

  到 .vim/bundle/YouCompleteMe 下

  /install.sh --clang-completer

  參數是為了支持c/c++ 的補全。

  安裝完成后,進行一些簡單的配置就可以使用。

  YouCompleteMe 的補全配置文件在/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py,這是個隱藏文件。

  默認會使用這個文件,也可以把這個文件copy到工程的根目錄中作修改,打開工程文件時會優先使用當前目錄下的配置文件。

  如果找不到,會根據配置中的ycm_global_ycm_extra_conf 進行查找。

  在.vimrc 中添加

  let mapleader = ”,“ ” 這個leader就映射為逗號“,”

  let g:ycm_global_ycm_extra_conf = ‘~/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py’ “配置默認的ycm_extra_conf.py

  nnoremap 《leader》jd :YcmCompleter GoToDefinitionElseDeclaration《CR》 “按,jd 會跳轉到定義

  let g:ycm_confirm_extra_conf=0 “打開vim時不再詢問是否加載ycm_extra_conf.py配置

  let g:ycm_collect_identifiers_from_tag_files = 1 “使用ctags生成的tags文件

  以上就是Linux給Vim安裝YouCompleteMe插件的方法了,YouCompleteMe插件號稱Vim自動補全神器,這個插件對Vim來說相當重要。

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: av中文字幕免费在线观看 | 中文字幕日韩一区二区不卡 | 日韩欧美在线一区 | 一区在线视频 | 国产欧美在线观看 | 亚洲福利精品 | 欧美日韩久久精品 | 国内精品一区二区三区 | 中文字幕91 | 国产成人影院 | 日本免费在线观看 | 午夜精品电影 | 艹逼短视频| 91在线高清 | 成人综合在线观看 | 国产一区二区在线免费观看 | 久久精品影视 | 欧美精品成人 | 国产免费激情视频 | 九色在线| 精品成人久久 | 午夜成人在线视频 | 精品欧美乱码久久久久久1区2区 | 黄色免费在线观看 | 制服诱惑一区二区 | 日韩视频在线一区二区 | 精品久久99 | 一区二区视频在线观看 | 欧美日韩三级在线 | 中文字幕视频三区 | 一区二区三区在线 | 久久成人免费视频 | 极品美女销魂一区二区三区 | 久久国产精品久久久久久电车 | 久久精品这里有 | 天天拍天天草 | 成人免费毛片高清视频 | 黄色免费av| 中国黄色一级视频 | av在线免费观看网站 | 日本黄色大片免费 |