日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

在deepin上安装YouCompleteMe

發(fā)布時(shí)間:2023/12/9 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 在deepin上安装YouCompleteMe 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

詳細(xì)安裝步驟在github上有,https://github.com/Valloric/YouCompleteMe,我這里是自己總結(jié)的簡化版安裝步驟。

步驟1.安裝Vundle

? ? ? ?首先,clone到本地

  • git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  • 把以下內(nèi)容復(fù)制到.vimrc:
  • set nocompatible " be iMproved, requiredfiletype off " required" set the runtime path to include Vundle and initializeset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()" alternatively, pass a path where Vundle should install plugins"call vundle#begin('~/some/path/here')" let Vundle manage Vundle, requiredPlugin 'VundleVim/Vundle.vim'" The following are examples of different formats supported." Keep Plugin commands between vundle#begin/end." plugin on GitHub repoPlugin 'tpope/vim-fugitive'" plugin from http://vim-scripts.org/vim/scripts.html" Plugin 'L9'" Git plugin not hosted on GitHubPlugin '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'" 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/'}" Install L9 and avoid a Naming conflict if you've already installed a" different version somewhere else." Plugin 'ascenator/L9', {'name': 'newL9'}" All of your Plugins must be added before the following linecall vundle#end() " requiredfiletype plugin indent on " required" To ignore plugin indent changes, instead use:"filetype plugin on" " Brief help" :PluginList - lists configured plugins" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate" :PluginSearch foo - searches for foo; append `!` to refresh local cache" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal" " see :h vundle for more details or wiki for FAQ" Put your non-Plugin stuff after this line
  • Install Plugins: 打開vim執(zhí)行:PluginInstall?或者直接輸入命令sudo vim +PluginInstall +qall

步驟2.安裝工具和cmake

  • sudo apt-get install build-essential cmake

步驟3.安裝python-dev,python3-dev

  • sudo apt-get install python-dev python3-dev

步驟4.安裝clang

  • sudo apt-get install clang

步驟5.編譯

  • cd ~/.vim/bundle/YouCompleteMe
  • ./install.py --clang-completer
  • 如果編譯出錯(cuò)執(zhí)行:git submodule update --init --recursive

步驟6.復(fù)制以下內(nèi)容到.vimrc中

"----------------------------""------ YouCompleteMe -------""----------------------------"let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py'" YouCompleteMeset runtimepath+=~/.vim/bundle/YouCompleteMelet g:ycm_collect_identifiers_from_tags_files = 1 " 開啟 YCM 基于標(biāo)簽引擎let g:ycm_collect_identifiers_from_comments_and_strings = 1 " 注釋與字符串中的內(nèi)容也用于補(bǔ)全let g:syntastic_ignore_files=[".*\.py$"]let g:ycm_seed_identifiers_with_syntax = 1 " 語法關(guān)鍵字補(bǔ)全let g:ycm_complete_in_comments = 1let g:ycm_confirm_extra_conf = 0let g:ycm_key_list_select_completion = ['<c-n>', '<Down>'] " 映射按鍵, 沒有這個(gè)會(huì)攔截掉tab, 導(dǎo)致其他插件的tab不能用.let g:ycm_key_list_previous_completion = ['<c-p>', '<Up>']let g:ycm_complete_in_comments = 1 " 在注釋輸入中也能補(bǔ)全let g:ycm_complete_in_strings = 1 " 在字符串輸入中也能補(bǔ)全let g:ycm_collect_identifiers_from_comments_and_strings = 1 " 注釋和字符串中的文字也會(huì)被收入補(bǔ)全let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'let g:ycm_show_diagnostics_ui = 0 " 禁用語法檢查inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>" | " 回車即選中當(dāng)前項(xiàng)nnoremap <c-j> :YcmCompleter GoToDefinitionElseDeclaration<CR>| " 跳轉(zhuǎn)到定義處"let g:ycm_min_num_of_chars_for_completion=2 " 從第2個(gè)鍵入字符就開始羅列匹配項(xiàng)

步驟7.出現(xiàn)的錯(cuò)誤

我安裝完以后,出現(xiàn)了以下錯(cuò)誤:

YouCompleteMe unavailable: requires Vim compiled with Python (2.6+ or 3.3+)

解決辦法:編譯安裝vim8.0,添加python支持

?

網(wǎng)址:在deepin上安裝YouCompleteMe

轉(zhuǎn)載于:https://www.cnblogs.com/wmjtxt/p/9040969.html

總結(jié)

以上是生活随笔為你收集整理的在deepin上安装YouCompleteMe的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 波多野结衣电影免费观看 | 天天有av | 综合网天天| 久久密 | 中文字幕9 | 动漫av在线播放 | 欧美性生活视频 | 在线看av的网址 | 日韩久久久久 | 妺妺窝人体色777777 | 中文字幕69页 | 国产又色又爽又高潮免费 | 日韩国产在线播放 | 2021av| 欧美一级做性受免费大片免费 | 在线观看99| 国内毛片毛片毛片毛片毛片 | 人妻精品一区二区在线 | 深夜福利在线播放 | 国产又粗又猛又爽又黄的 | 中文字幕乱码人妻无码久久 | 插插网站 | 国精产品一品二品国精品69xx | 中国av一级片 | 成年人在线观看网站 | 国产精品久久一区二区三区 | 精品欧美一区二区三区免费观看 | 免费黄色片视频 | 一区二区在线视频免费观看 | 久久亚洲一区二区 | 毛片免| 妺妺窝人体色www在线小说 | 96日本xxxxxⅹxxx70 | 国产香蕉视频在线观看 | 熟女高潮一区二区三区视频 | 中文av免费| 免播放器在线视频 | 日日干日日射 | 精品一区二区不卡 | 色噜噜狠狠狠综合曰曰曰 | 日本高清xxx| 欧美性猛交aaaa片黑人 | 国产黄色免费大片 | 欧美日韩视频无码一区二区三 | 综合久久国产 | 久久av高潮av无码av喷吹 | 91亚洲国产成人精品性色 | 91视频久久久久 | 亚洲无码精品国产 | 欧美黑人多人双交 | 爱爱视频一区二区 | 中文字幕你懂的 | 自拍视频在线观看 | 国产午夜精品一区二区三区嫩草 | 国产清纯白嫩初高中在线观看性色 | 国产精品一二三区在线观看 | 日本一本久草 | 日本免费网站 | wwwxxx欧美| 人人射视频 | 亚洲欧美综合在线观看 | 久久综合伊人77777麻豆 | 野战少妇38p | 中文字幕国产在线观看 | 婷婷色在线观看 | 日本国产一区二区 | 日本不卡一二 | 午夜亚洲aⅴ无码高潮片苍井空 | 欧美激情一区二区三级高清视频 | 欧美成人三级伦在线观看 | 中出在线视频 | 国产伦精品一区二区三区视频痴汉 | 少妇熟女高潮流白浆 | 国产50页| 国产精品免费电影 | 羞羞答答av | 免费无码国产v片在线观看 三级全黄做爰在线观看 | 亚洲色欲色欲www在线观看 | 日韩视频免费在线 | 成人国产精品久久久 | 超碰久操| 污漫网站 | 国产精品天美传媒沈樵 | 国产视频分类 | 日日天天干 | 在线天堂中文在线资源网 | 中文字幕亚洲视频 | 久久99精品国产91久久来源 | 国产精品久久麻豆 | 美女张开腿露出尿口 | 久久午夜伦理 | 清冷男神被c的合不拢腿男男 | av观看一区| 强迫凌虐淫辱の牝奴在线观看 | 欧美色图在线观看 | 美女视频黄的免费 | 日韩一区二区精品视频 | 亚洲精品aaa| 一个人看的视频www 色就是色网站 |