What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Questions tagged [plugin-you-complete-me]

YouCompleteMe is an alternative completion engine for Vim.

Filter by
Sorted by
Tagged with
19
votes
3answers
14k views

What's the correct way to install YouComplete using vim-plug in vim/nvim?

The only documentation for installing YCM seems to be for Vundle and I'm fairly new to vim-plug and plugins in general so I'm not sure how well it translates to vim-plug.
10
votes
1answer
7k views

Why doesn't YouCompleteMe complete function paramters?

I'd like to use YouCompleteMe with C++ semantic completion, but after hours of trying, I can't find why it doesn't work as expected. Everything seems to be working but I can't complete function ...
9
votes
1answer
685 views

How can I limit number of suggestions when using YouCompleteMe?

I'm working on fairly large php codebase (~1.3 mil lines of code). I have generated tags and now when I'm typing something like $data-> YouCompleteMe lags really hard and basically freezes Vim ...
7
votes
2answers
45k views

How to install YouCompleteMe with Clang completer offline?

I have installed YouCompleteMe with Clang completer in OS X 10.10.4, and in my new OS X 10.11.4 I want to reinstall it. The previous installation process downloaded about 140MB at very low speed. I ...
7
votes
1answer
1k views

What does an `autocmd User` do?

I switched to vim-plug recently. In the README, there's this snippet for using YouCompleteMe with vim-plug: " Code to execute when the plugin is loaded on demand Plug 'Valloric/YouCompleteMe', { 'for'...
7
votes
1answer
2k views

Python imports autocompletion

I'm trying to configure vim for python development. Right now I'm working on code autocompletion feature. I'm using YouCompleteMe plugin and it seems to be working great but only when I've already ...
5
votes
2answers
4k views

YouCompleteMe in non-code files yields — User defined completion (^U^N^P) Pattern not found

I use YouCompleteMe and it works great (after some setting up woes) for both C/C++ and Python code. However, it tries to complete things in text files such as ReStructured text, markdown, etc... The ...
5
votes
1answer
2k views

Is there a way to install youcompleteme plugin using vim 8.0 default plugin manager?

I read that vim 8 provides it default plugin manager. I upgraded my vim to vim 8.0 and am trying to install the plugin using the method provided in the documentation. youcompleteme plugin github repo ...
5
votes
2answers
149 views

Make column for signs permanent in gVim

I just started using ycm with clang-completer, which apparently can also do syntax checking. It instantly reminded me why I avoided syntax checking in gVim: As soon as an error is found, the signs ...
5
votes
1answer
5k views

How to disable YouCompleteMe's error checking?

I have recently installed YouCompleteMe and can't figure out how to disable its error checking feature. I am developing in C++ and wanted to use Neomake as my checker.
5
votes
0answers
692 views

Can I give YouCompleteMe a static list of completions?

I am using the Julia programming language, and as of right now, there are no good syntax-completer for VIM. I am working on one, but haven't fully got my head around how to hook into ycmd. Til I ...
4
votes
1answer
1k views

Adding ctags for a 3rd party library

I would like to know how to generate ctags and find them with auto-complete plugins for new libraries that I install in order to 1) auto-complete for 3rd party library namespaces, classes, etc. and 2) ...
4
votes
1answer
146 views

Sharing gutter space between line numbers and YCM markers

Is there a way, if the 'number' option is enabled to show line numbers, to make YouCompleteMe show errors and warnings by changing the line number colours instead of adding extra width to the gutter ...
4
votes
1answer
6k views

How do I complete Python3 with YouCompleteMe?

I'm using YouCompleteMe to do omni complete. Most of these are fine. But when I want to complete Python3, there is something wrong. It only can complete python2. For example, import urllib # ...
4
votes
0answers
114 views

YouCompleteMe on remote files

I use YouCompleteMe on vim and it works great for me on the files in my local machine. However, when I open files in a remote server, for example, using :e scp://user@remote//path/to/file.cpp None ...
3
votes
1answer
483 views

How can I keep the gutter width constant when using YouCompleteMe?

YouCompleteMe puts symbols in the "gutter" (left of the editor) for errors: The problem is that the gutter shifts the whole editor over, and it is only present when there is at least one error. ...
3
votes
1answer
805 views

How do I copy the error message I get from YCM

Is there a way to copy the error message that YCM shows at the bottom of vim? For example in the above image, it says: unused parameter 'sortFunction' I had an idea of using "howdoi [paste]" in ...
3
votes
1answer
173 views

Why python autocompletion does not work if path to python binary is taken from variable?

I use YouCompleteMe for python3 code completion, and when I have let g:ycm_python_binary_path = '/usr/bin/python3' in my ~/.vimrc it works great. However, if I change it to let python3path = system(...
3
votes
1answer
69 views

Float YCM completion candidate list to make more of entry previews visible?

Using plugin YouCompleteMe, I get useful previews of entries. However, if the cursor is near the end of the line, the list gets out of sight. Screenshots below; the latter with pumwidth=75. (First ...
3
votes
1answer
4k views

How to resolve “requires Vim compiled with Python 2.x support” when launching Vim?

I have Vim 7.4 installed on Windows 10 as part of a Mingw64 installation. I installed the YouCompleteMe plugin on it through Vundle, then ran the install.py, which completed successfully. Now, every ...
3
votes
0answers
71 views

Can I use Ag in combination with YouCompleteMe for tag autocompletion? [closed]

I have setup vim to use Ag for grepping and for use in the CtrlP plugin. For tag autocompletion, I am using YouCompleteMe. To get autocompletion suggestions for functions throughout the whole project,...
2
votes
1answer
545 views

Re-activation of vim-youcompleteme

I recently had an 'rm -rf' related mishap in my home directory ( Ubuntu 14.04 installation ). Vim ( v 7.4.52 ) and the add-on package 'vim-youcompleteme' had been installed prior to the mishap and ...
2
votes
1answer
65 views

How do I display a Python docstring in Vim

I've recently decided to give Vim a try and am trying to get it set up for work with Python. I've installed YCM, so I have autocompletion now, which is good, but there are a few things documentation-...
2
votes
4answers
882 views

Auto-complete popup menu: make Enter trigger newline if no item was selected

I like using the <CR> key to confirm my selection in the popup menu. However I don't like the <CR> key doing absolutely nothing when no item was selected in the menu -- in this case, it ...
2
votes
1answer
928 views

How can I show the command line YouCompleteMe is using to compile my file?

I believe I am experiencing some weirdness in how YouCompleteMe is compiling my files to do its syntax checking. I suspect settings from my .ycm_extra_conf.py are not being applied the way I think ...
2
votes
1answer
797 views

How to make YCM load <GL/glew.h> by default?

I am currently learning OpenGL and C++ and I would like to have gl* completion ready on my C++ projects. YCM is not scanning the <GL/glew.h> header when I include it - isn't it supposed to do ...
2
votes
1answer
54 views

Highlight group for signature help

I'm using Vim (v. 8.2) with YouCompleteMe as a code completion engine. I welcome the addition of signature help, but I'm not happy with the default colors: Does anyone know what highlight group is ...
2
votes
1answer
996 views

Vim 8.0 breaks YCM on Windows 10

I was using Vim 7.4 with YCM quite successfully (thank you for YCM!) and just today noticed that Vim 8.0 was out. I downloaded, installed, started and now it complains that "YouCompleteMe unavailable: ...
2
votes
1answer
318 views

Vim and YouCompleteMe troubles (PROTOCOL_TLS)

I wanted to install YouCompleteMe plugin for vim - however failed miserably at every step of the way. The problem was I had to compile everything by hand (remote machine - no root): started with vim ...
2
votes
1answer
527 views

Conflict between python used by vim and by YouCompleteMe

YCM does not work for the reason given above. When I type :python import sys; print sys.version I obtain: 2.7.9 (default, Dec 13 2014, 15:13:49) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] ...
2
votes
1answer
35 views

YCM causes some error while loading nerdtree

I'm using vim to do my code job and I installed Nerdtree and YCM. With this merge, YCM has two functions, which allows us to get the error and warning counts. Here is my .vimrc: autocmd VimEnter * ...
2
votes
0answers
32 views

neovim and youcompleteme

Anyone know how to get rid of the file path segment of the completion list. I'm using youcompleteme with rust.
2
votes
0answers
175 views

YouCompleteMe GoToDefinition for java gives 'RuntimeError: Cannot jump to location' when used on classes from Maven Dependencies

I've been using ycm for Python and Go, trying to configure ycm to work with Java. I've installed java 8, maven, recompiled ycm with --java-completer and done mvn install in a repo that contains a ...
2
votes
0answers
42 views

How to make YouCompleteMe work with cgo

In C, YouCompleteMe could autocomplte the function if I include the header file in code: I want it work like C, when I write Go code and include the C header file in cgo: So, how should I config ...
2
votes
0answers
97 views

No omnicompletion in Vim for python

So I got YouCompleteMe working for python autocompletion. Whenever I use a . operator such as: import sys sys. It shows the correct suggestions. Note that I didn't have to hit CtrlSpace. But when I ...
2
votes
0answers
839 views

Code Completion for Module based JavaScript files in Vim

I've been trying to get my Vim setup similar to other IDE's (pycharm, webstorm) and I'm hoping to get the functionality of having code completion for injected objects. I have YouCompleteMe and ...
2
votes
0answers
395 views

gvim on windows - compiled ycm plugin now crashing on start

I installed the YouCompleteMe(YCM) plugin and compiled it using the provided instructions, one after the other for all options excluding rust. Below is a reproduction of the commands I ran, the reason ...
1
vote
1answer
4k views

Getting Python support for gVim 8.1 (Windows 10)

As an extension (follow-up question) of the answer here: If you type :version, you should see +python/dyn and +python3/dyn. On Windows, this means that Vim is compiled to dynamically load the Python ...
1
vote
1answer
3k views

Installation of YouCompleteMe

I have been trying to install YouCompleteMe for a long time. At first, I failed because I need to build Vim having python support. Now I have it solved, but I always fail at building YouCompleteMe ...
1
vote
1answer
140 views

Completion pop-ups hijack arrow keys. Any way to disable that?

Regardless of which code completion plugin I use (I tried asyncomplete and YouCompleteMe), when there's a completion pop-up, up and down arrow keys select completion options in it instead of moving ...
1
vote
1answer
722 views

Understanding YouCompleteMe's 'Configuring through Vim Options' Mechanics

There is a bit in YouCompleteMe that I do not understanding. It is the following bit from the documentation: Configuring through Vim Options --- EDIT --- So to clarify the question: How different is ...
1
vote
1answer
2k views

Alternative mapping for <Tab> key via YouCompleteMe

I have tried many of the available online instructions on remapping my <Tab> key in my vimrc file but none of them have any effect. If I run :map! <Tab> ᐅ directly from command entry it'...
1
vote
1answer
17 views

How to leave spaces for error symbols

I'm using vim 8 with YCM. When YCM finds an error, a symbol will popup as below: As you see, there is a symbol before line 26. The problem is that it will make the whole window move to right a ...
1
vote
1answer
201 views

Why can't YCM be loaded automatically

I'm configuring a vim environment with YCM. I'm using the Vundle to manage the vim plugins and here is my .vimrc: set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() ...
1
vote
1answer
91 views

Sophisticated autocompletion in Vim in a VScode manner

I'm currently switching to Vim as my main text editing tool and I try to investigate if it is possible to make Vim behave like VScode when it comes to autocompletion. I got really used to the way ...
1
vote
1answer
287 views

Python semantic linting [closed]

I'm currently using ALE (recently upgraded to this from syntastic) and YCM for code completion, highlighting syntax errors on-the-fly (rather than just at save time, like with syntastic), and it's ...
1
vote
1answer
754 views

Temporarily Disable/Reenable YouCompleteMe Plugin

Is there a way to temporarily disable/reenable the YouCompleteMe Plugin for vim? Syntastic has a nice way of doing so with the SyntasticToggleMode command (useful for when I know I'm writing code that ...
1
vote
1answer
3k views

Neovim- YouCompleteMe Python completion not working

I recently did a fresh install of Neovim and I'm trying to get YouCompleteMe to work. I installed the plugin with vim-plug with no errors, and followed the instructions on the YCM github page step by ...
1
vote
1answer
1k views

Vim Youcompleteme

I'm using vim for only a year. So, I'm a noob. I need help regarding setting up youcompleteme plugin for vim 8.0 with c/c++ semantic and java autocomplete support. I tried 2-3 times with no luck. No ...
1
vote
1answer
537 views

YouCompleteMe C++ semantic completion does not work for . operator

For the majority of Semantic triggers in C++ YCM works fine, but I've been unable to make it work for the . operator on a type. (For example, for a vector type I'd like to have the list of its ...