Questions tagged [plugin-you-complete-me]
For questions about the YouCompleteMe plugin. This plugin is an alternative completion engine for Vim.
115
questions
22
votes
3
answers
22k
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
1
answer
8k
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 ...
10
votes
1
answer
827
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 ...
9
votes
1
answer
3k
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'...
8
votes
0
answers
861
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 ...
7
votes
2
answers
52k
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
1
answer
3k
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 ...
6
votes
1
answer
3k
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
1
answer
8k
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 ...
5
votes
2
answers
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
1
answer
1k
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. ...
5
votes
2
answers
211
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
1
answer
7k
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
0
answers
217
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 ...
4
votes
2
answers
427
views
YouCompleteMe: do I have to install extra plugins for semantic completion?
Looking at the docs for YouCompleteMe it relies on other plugins to do semantic completion for a lot of the languages it has.
Example for python from the docs:
YCM relies on the Jedi engine to ...
4
votes
1
answer
2k
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
1
answer
1k
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 ...
4
votes
3
answers
4k
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-...
4
votes
1
answer
176
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
1
answer
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 # ...
3
votes
1
answer
521
views
Disabling hint popup
Whenever my cursor is over a function for a few seconds, this hint for the function pops up. Doesn't go away by hitting Esc and I need to move my cursor to get rid of it.
No other plugins except ...
3
votes
4
answers
2k
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 ...
3
votes
1
answer
1k
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 ...
3
votes
1
answer
278
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
1
answer
2k
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 ...
3
votes
1
answer
169
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
1
answer
5k
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
0
answers
85
views
How to use :PlugInstall intelligently
I have installed YouCompleteMe in the past, but don't remember how. I recently decided to sync my ~.vim directory over multiple computers via a cloud service and realized I was inadvertently ...
3
votes
1
answer
2k
views
Make YouCompleteMe open definition in vertical split even if buffer is not saved
There is something I cannot do with YouCompleteMe that I could do when just using tags to navigate to a definition or declaration.
The desired behaviour is (taking into account that , is my leader ...
3
votes
0
answers
105
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
1
answer
2k
views
Cannot find implementation or library stub for module named "flask"
In a Python file, my first line is:
from flask import Flask
Which triggers an error in the gutter that shows the following message when I drag the cursor over that line:
Cannot find implementation or ...
2
votes
2
answers
3k
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 ...
2
votes
1
answer
601
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
1
answer
2k
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()
...
2
votes
2
answers
213
views
Characters from YCM completion menu not cleared in Vim
I'm dealing with a cryptic issue in my environment which is annoying and I have no idea where to start debugging. Random characters on that aren't actually in the document appear on screen after YCM ...
2
votes
1
answer
3k
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'...
2
votes
1
answer
919
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
1
answer
479
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
1
answer
1k
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
1
answer
335
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
1
answer
567
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
1
answer
166
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
0
answers
133
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
0
answers
513
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
0
answers
591
views
How to get YouCompleteme to work with kernel headers
I am taking an OS class and we have an upcoming assignment involving Kernel modules.
I'm reading Wiley OS text to prepare and they have the below code.
I keep on getting an error that the header files ...
2
votes
0
answers
53
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
0
answers
114
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
0
answers
1k
views
YouCompleteMe with cygwin
I installed YouCompleteMe (--clang-completer), but cannot use it. On start I see a message
The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code -11. Use the ':...
2
votes
0
answers
965
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
0
answers
428
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 ...