Questions tagged [youcompleteme]

YouCompleteMe is an autocomplete and diagnostics plugin for Vim.

YouCompleteMe is a fast, as-you-type, fuzzy-search code completion engine for Vim. It includes an identifier-based engine that works with every programming language and many programming language-specific engines.

See https://valloric.github.io/YouCompleteMe/

202 questions
4
votes
1 answer

vim plugin youcompleteme for project using scons and g++ compiler

I just installed YCM on CentOS 7. I am now at the step of generating a ".ycm_extra_conf.py" equivalent of the file for my project, which is a nested directory of c++ files, uses Scons build system and g++ (with -std=c++98) to compile the c++…
Ahmed A
  • 3,362
  • 7
  • 39
  • 57
4
votes
2 answers

YouCompleteMe unavailable: dlopen... (more in description)

This is the full error when running vim after compiling youCompleteMe for macvim: YouCompleteMe unavailable: dlopen(/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found:…
4
votes
0 answers

YouCompleteMe cannot include my project header files

recently I started working on c++ in linux(ubuntu), and I found a good vim plugin called "YouCompleteMe". I installed it successfully with --clang-completer, and it does working, but not fully. It can recognize system c++ library but it cannot…
gimbup
  • 184
  • 3
  • 18
3
votes
2 answers

How do I scroll the YouCompleteMe GetDoc popup with the keyboard?

I would like to be able to scroll the YouComplete GetDoc popup with the keyboard in cases where the docstring is too large to fit within the popup. Currently I invoke the popup with yD. Here is the relevant snippet from my .vimrc: nmap…
quant
  • 21,507
  • 32
  • 115
  • 211
3
votes
1 answer

Unable to Run YouCompleteMe in neovim

I use Manjaro (5.6.7 Kernel), I am trying to install YCM on neovim. I did it before, but it was vim, and I used vundle, this time I am using vim-plug. I get this message when I launch newvim. YouCompleteMe unavailable: requires Vim compiled with…
Hatem Saadallah
  • 130
  • 2
  • 10
3
votes
4 answers

YouCompleteMe unavailable: unable to load Python

I use Linux CentOS-7-x86_64 and am trying to install YouCompleteMe with vundle. I get the error: YouCompleteMe unavailable: unable to load Python. however, when I type vim --version I get: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 13 2020…
AlphaNotKnows
  • 31
  • 1
  • 2
3
votes
2 answers

Vim YouCompleteMe c++17 : warning on decomposition declaration

I would like to set YouCompleteMe correctly so that I do not get the following warning on a c++ file: ... auto [k,v] = mapIt; // some map iterator ... decomposition declarations are a C++17 extension I added flags.append( '-std=c++17' )…
Frankie Y. Liu
  • 121
  • 2
  • 9
3
votes
1 answer

How to expand an UltiSnips snippet using in the YouCompleteMe pop-up menu?

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…
Saeed Ahadian
  • 212
  • 2
  • 4
  • 14
3
votes
1 answer

YouCompleteMe GetDoc preview window does not trigger on selection

As far as I understand YouCompleteMe comes by default with this handy preview window showing whatever the GetDoc subcommand returns whenever you select a completion. The issue I'm currently facing with it however is that while it works perfectly…
Fynn Becker
  • 1,278
  • 2
  • 18
  • 21
3
votes
1 answer

cmake generate multiple compile_commands.json?

I have been using cmake with vim and generate a compile_commands.json file to obtain autocomplete. The problem I am having is that I have a file structure build include src where I have all of my headers files in the include directory and…
Spencer Duball
  • 531
  • 2
  • 6
  • 18
3
votes
1 answer

Can't Enter newline in insert mode while using YouCompleteMe and Ultisnips

I can't press Enter in Insert Mode while using the above two plugins. Is there a way to fix this? Or reassign how YouCompleteMe handles Enter? I'm using the default configuration for YouCompleteMe, and a simple config for Ultisnips as follows: au…
Jin
  • 778
  • 1
  • 8
  • 23
3
votes
0 answers

YouCompleteMe won't work with C++11

I have encounter a problem using YouCompleteMe plugin on Vim. I am using macOS. Following the installation guideline, I install it with --clang-completer options. It works ok when I am writing C++03 codes. But when I add to some C++11 codes, the…
Eric Zheng
  • 1,084
  • 1
  • 11
  • 23
3
votes
4 answers

YouCompleteMe unavailable : requires Vim 7.4.143

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…
Wan Li Hau
  • 41
  • 1
  • 2
  • 4
3
votes
1 answer

python completion is slow in vim with youcompleteme

Every time I import a third-part library, YouCompleteMe cannot work immediately. e.g. When I input import numpy as np and then np., it shows nothing. After a few seconds (maybe 10s or more), when I input np., it can work well and show a list of…
Qian Wang
  • 764
  • 2
  • 7
  • 13
3
votes
1 answer

Change python version vim uses

I have "YouCompleteMe" plugin in vim, when I activate my virtualenv and enter vim, YouCompleteMe complains about python3. When I run: vim --version The "+" icon is beside python3, I need to make it use "python". What is the command to switch this…
polarcare
  • 575
  • 1
  • 6
  • 24
1
2
3
13 14