youcompleteme

CentOS 8 搭建Vim golang环境 && YouCompleteMe Golang安装支持

末鹿安然 提交于 2020-03-02 07:33:09
CentOS 8 搭建Vim golang环境 Vim搭建Golang IDE 1. Vundle安装 Vundle是vim的插件管理工具,用它可以自动管理安装后面用到的插件,从GitHub安装 cd mkdir .vim/bundle cd .vim/bundle git clone https://github.com/Valloric/YouCompleteMe.git 安装完成后修改~/.vimrc启用 " .vimrc " vundle set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' call vundle#end() 2. 安装vim插件 插件管理软件安装好了,接下来安装需要的插件: vim-go: https://github.com/fatih/vim-go YouCompleteMe: https://github.com/Valloric/YouCompleteMe Tagbar: https://github.com/majutsushi/tagbar NERDTree: https://github.com/scrooloose/nerdtree 使用vundle自动安装,修改.vimrc " vundle set rtp+=~/.vim

How to expand an UltiSnips snippet using <c-y> in the YouCompleteMe pop-up menu?

∥☆過路亽.° 提交于 2020-02-04 10:57:39
问题 This problem really hit a nerve with me. I have both YouCompleteMe and UltiSnips installed on my vim 8.0 editor. It seems that both of these plugins use the tab key for doing the auto-completion and that has created an incompatibility that has been also addressed by this question. My question is more specific, though. When I write a piece of code like <html , there is a pop-up menu that shows me all related snippets for that code. I use the tab key to navigate through that menu but when I hit

How to expand an UltiSnips snippet using <c-y> in the YouCompleteMe pop-up menu?

流过昼夜 提交于 2020-02-04 10:57:03
问题 This problem really hit a nerve with me. I have both YouCompleteMe and UltiSnips installed on my vim 8.0 editor. It seems that both of these plugins use the tab key for doing the auto-completion and that has created an incompatibility that has been also addressed by this question. My question is more specific, though. When I write a piece of code like <html , there is a pop-up menu that shows me all related snippets for that code. I use the tab key to navigate through that menu but when I hit

初涉Linux ----------> 打造自己的 Vim IDE

扶醉桌前 提交于 2020-01-19 02:27:12
一. 开篇前言   (图片显示越界的话,请刷新)    装好Ubuntu15.04系统 之后呢,玩了玩 Ubuntu,感觉还是很不错的。比windows快,一开机就可以打开你想要的程序,但是在windows下你要等他启动一些必须项才可以正常启用。感觉 Linux 和 MacOs 有得一比。只是在linux下软件会少很多。   之前写过 一篇博文 是关于Vim的简单使用,也是从零开始去接触和使用Vim,了解了那篇博文里的命令后,就可以使用vim来高效地完成你的编辑工作了,当然,如果需要到格式的控制,使用vim还是不够的,需要到 markdown 了,如果Vim能加上 Markdown 的话,那编辑起来堪称完美了吧,哈哈。   Vim 不仅是“编辑器之神”,而且Vim的插件丰富,完全可以打造成开发环境IDE,接下来就记录一下我的vim,整个过程下来,感觉就像是自己搭建了一个IDE,不错哦。   本博文可以完成的效果包括: (左侧目录,分割窗口,代码补全,C/C++/Java/Python 的编译运行/语法补全/Tagbar[右侧大钢导航])   Vim作为IDE,可以达到的效果,先来解解馋: 二. 本篇博文介绍到的Vim的配置功能 1. 先来安装吧    安装的话,在 Linux 下是很简单的,打开终端,输入几条命令就可以完成了。   sudo apt-get install vim

vim之python编辑器打造全攻略

寵の児 提交于 2019-12-25 22:15:17
文章目录 参考的文章 还需注意的几个问题 我的配置 为了简便地在ssh上编辑Python,学习了vim使用及其Python编辑配置,以及在配置过程中出现的一些问题。使用环境是ubuntu Server 18.04 LTS。 参考的文章 这几个人的文章给了我极大的帮助,特别是1和2: 1、再见紫罗兰的 【 使用vim打造自己的python编辑器 】 2、Awakenedy 的 【 Vim与Python真乃天作之合:打造强大的Python开发环境 】 3、weixin_34186128 的 【 在Ubuntu 16.04 LTS 下用Vim 打造自己的Python IDE 问题总结 】自我摸索了很久,搞定了很多坑才发现有这篇文章,早点没发现,浪费了多少时间啊。但是这篇文章中每个代码片段后面都有莫名其妙的数字,删掉即可。 4、54Fire的【 安装YouCompleteMe 】 配置参阅上述文章即可,在此不在赘述 。 还需注意的几个问题 1、本文配置主要是python,其他语言可能有所区别,在查阅资料过程有人提到c++的配置,特别是YouCompleteMe插件有区别。 2、YouCompleteMe建议不要使用Vundle插件管理器 来安装,可先手动安装后再配置。因为youcompleteme实在是太慢了,而且经常断掉。断掉就rm后重来。手动安装请参阅54Fire的【

Navigate through vim's preview window

别来无恙 提交于 2019-12-24 17:00:52
问题 I am working on a Python project using Vim with YouCompleteMe code completion. The thing is most of the docstrings don't fit in the preview window. Is it possible to increase the preview window height or navigate through it? 回答1: You can find all the info you need on the preview window in: :help preview-window Take a look at the previewheight option: :help 'previewheight' 来源: https://stackoverflow.com/questions/34132809/navigate-through-vims-preview-window

YouCompleteMe unavailable : requires Vim 7.4.143

依然范特西╮ 提交于 2019-12-23 19:23:42
问题 my apologies if im asking a retarded question. New to windows bash and saw the vim Plugin "YouCompleteme" and tried to install it with Vundle. However im getting the error as stated in the title. My vim current ver is 7.4.52 anyone have any idea how to solve this? Edit : I just realised when i just call vim it says 7.4.52 however when i call :version it says 7.4 does this mean im using the wrong vim ? 回答1: You need to upgrade to the latest vim so run the following commands: sudo add-apt

Why does my YCM Server shut down?

不羁岁月 提交于 2019-12-11 01:39:42
问题 Whenever I open vim, I get the message that Ycm Server has shutdown with exit code -6. The log files contain the following info: 2017-12-23 21:25:50,550 - ERROR - Unable to connect to server Traceback (most recent call last): File "/Users/abhisheknaik/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 217, in HandleServerException yield File "/Users/abhisheknaik/.vim/bundle/YouCompleteMe/autoload/../python/ycm/youcompleteme.py", line 237, in CheckIfServerIsReady

在树莓派上安装YCM(YouCompleteMe)

拈花ヽ惹草 提交于 2019-12-06 23:22:24
​ 太折腾了!如果你搜索到了这篇文章,建议直接使用SpaceVim作为替代品。 0x0.第一个坑——不支持Python ​ 我的树莓派的系统是基于Debian Stretch的Raspbian Stretch。使用apt-get安装的vim不支持python脚本。你可以通过输入: 1 vim --version | grep python 来检查,如果发现python/python3前面出现了加号,恭喜你,你可以跳过本步骤了。它说明你的vim支持python。如果都是减号,你需要重新编译安装vim了。 ​ 在安装之前先将vim卸载掉。 1 sudo apt-get remove vim vim-runtime gvim ​ ​ 然后安装编译所需要的包 1234 sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev python3-dev ruby-dev lua5.1 liblua5.1-dev libperl-dev git ​ clone vim到目录下 123 cd ~git clone https

ubuntu14.04 vim之YouCompleteMe安装

匿名 (未验证) 提交于 2019-12-03 00:28:02
一、注意: 1.需将vim版本升级,本人升级到当时最新版本8.1 2.vim8.1 默认只支持python3,不支持python2,而本人需要python2,故用源码安装vim8.1,没有使用apt-get安装方式 3. 网上查询说YouCompleteMe只能支持python2或python3中一个 4.本人使用的vim插件管理器是vim addon manager, 简称VAM 5.在安装完vim8.1后,使用VAM安装YouCompleteMe后,其实并未真正安装完全,需要编译出ycm_core.so,生成后放在如下路径 /root/.vim/vim-addons/YouCompleteMe/third_party/ycmd/ycm_core.so 6.在用VAM安装YouCompleteMe插件后,利用./install.py --clang-completer指令编译时出现如下错误: sudo apt-get install build-essential cmake3 7.youcompleteme只支持原生态的python解释器,因此在运行install.py前,应该指定使用原生态的python解释器(lz是将anaconda的bin路径临时性的从PATH中移除),虽然使用anaconda的python解释器也可以编译成功