Questions tagged [plugin-you-complete-me]

For questions about the YouCompleteMe plugin. This plugin is an alternative completion engine for Vim.

Filter by
Sorted by
Tagged with
0 votes
1 answer
171 views

YCM compilation database NOT on a per file basis

I am using YCM to work on a pretty large C project. I generate multiple executables/static libraries hence have multiple makefiles and so multiple compilation databases (generated using BEAR) for ...
Your move creep's user avatar
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 ...
krissen's user avatar
  • 33
1 vote
0 answers
197 views

Using mouse to navigate to type using YouCompleteMe plugin

I'm trying to map ctrl+click event to generic navigation for java types using YouCompleteMe plugin. There's plugin command to do that: :YcmCompleter GoTo it navigates to "most sensible" place for type ...
g4s8's user avatar
  • 213
1 vote
1 answer
945 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 ...
Cloud's user avatar
  • 223
0 votes
0 answers
767 views

YCM is not working with .ycm_extra_conf nor compile_comands.json on Windows

I have problems using YCM plugged for C-family languages. Here are what I have done: project layout -- build -- src -- source file dir0 -- include main.cpp -- source file dir1 ...
Yukun Du's user avatar
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 ...
Paul Kim's user avatar
  • 231
0 votes
1 answer
484 views

configure VIM with Python support for Debian 9.4 VM Instance

I'm trying to configure VIM with Python support in order to use the You Complete Me pluggin. This question has been asked before. Unfortunately none of the answers have worked for me. Any suggestions ...
lando2319's user avatar
  • 121
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 ...
mbilyanov's user avatar
  • 697
-1 votes
1 answer
1k views

E464: Ambiguous use of user-defined command: Plug 'rdnetto/YCM-Generator' , { 'branch': 'stable'}

I have the following vimrc file : syntax on set nocompatible " be iMproved, required filetype off " required if has("autocmd") au BufReadPost * if line("'\"") > 1 &...
PersianGulf's user avatar
1 vote
0 answers
129 views

How to set up vim tags for JavaScript using vim-easytags

I use YouComplete plugin to do language completion but I can't seem to get tags to work for my own files/functions. I use xolox/vim-misc and xolox/vim-easytags and installed Exhuberant ctags. my ....
CodeCrack's user avatar
  • 111
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 ...
solomon_wzs's user avatar
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 ...
J-Win's user avatar
  • 369
1 vote
1 answer
5k 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 ...
sth8119's user avatar
  • 113
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 ...
Luke Davis's user avatar
  • 1,397
0 votes
1 answer
4k views

How to add Plugin in .vimrc file? [duplicate]

I am a new user of vim and want to add a plugin SuperTab for autocompletion. I searched for the plugin from vimawesome and it says Place this in your .vimrc: Plugin 'ervandew/supertab' I've created ...
Hashir Sarwar's user avatar
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(...
Anton K's user avatar
  • 133
0 votes
1 answer
194 views

Unable to link ycm_core.dll when compiling YCM

i am trying to compile the YouCompleteMe (YCM) plugin on cygwin on windows 10, and every time the compiler fails when linking the ycm_core.dll shared library. I will paste my output in this post, ...
BelgishChoko's user avatar
1 vote
1 answer
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 ...
user avatar
0 votes
1 answer
342 views

Vim crashes when using autocomplete

Some of the times I use YouCompleteMe, Vim 'half-crashes': I cannot continue coding in the current tab, but switching tab and coming back solves the issue. The autocompletion works about 80% of the ...
etal's user avatar
  • 131
0 votes
1 answer
213 views

how to link YCM through ruby shims that rbenv provide

We often run with multiple ruby versions and often I have to recompile YCM when I switch as sometimes I get errors like segfaults or can't find ruby. I was wondering, how do I get YCM to compile by ...
Thermatix's user avatar
  • 239
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 ...
user2891462's user avatar
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 ...
sb3728's user avatar
  • 71
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 ...
user avatar
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 ...
realh's user avatar
  • 161
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'...
6ft Dan's user avatar
  • 141
1 vote
1 answer
539 views

How to avoid dependency conflics when installing vim from source?

I run Ubuntu 14.04 and want to use YouCompleteMe with vim for python and c++ code completion. YouCompleteMe requires vim 7.4.143+, which is higher than what I get with apt-get, so I follow this ...
Ilia Vasilev's user avatar
0 votes
1 answer
970 views

Is there a way to force vim youcompleteme plugin to do semantic analysis again?

Is there some shortcut to force ycm to re-run semantic analysis on the code. Eg. I get some error, I correct it and I want to check, but ycm on my machine refreshes only after about 5 secs. One way is ...
Abhishek Kumar's user avatar
1 vote
2 answers
3k views

Youcompleteme on Mac OS X

I'm trying to use the YouCompleteMe auto completion plugin. I have installed MacVim version 7.4. I followed the instructions on the linked page for Mac OS X by making the symlink: ln -s /usr/local/...
Mike's user avatar
  • 113
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 ':...
Loom's user avatar
  • 261
0 votes
2 answers
890 views

How to get Youcompleteme to work with Vimscript?

I've switched from NeoComplete to YouCompleteMe because it has much better intellisense, though I had NeoComplete working much better with Omnicompletion. NeoComplete was able to automatically ...
domi91c's user avatar
  • 469
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: ...
BotWhisperer's user avatar
1 vote
1 answer
4k views

<C-space> does nothing in YouCompleteMe

I'm on my 4th clean install of YouCompleteMe. I am trying to get to work with a Python file after a . (such as foo....Then I hit <C-space> and would hope to see a list of options to complete ...
testname123's user avatar
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 ...
drinker's user avatar
  • 41
0 votes
1 answer
980 views

youcompleteme key error when using vim

For a few days now I always getting the following error when pressing any key in vim: Error detected while processing "function <SNR>53_OnCursorMovedNormalMode[5]..<SNR>...
Gregor's user avatar
  • 101
-1 votes
2 answers
2k views

bypassing TAB auto-complete

Sometimes I need to press TAB, but instead of getting actual the tab key, a suggestion pops up and TAB cycles through the suggestions. How can I insert TAB without invoking the auto-completion ? The ...
stdcall's user avatar
  • 949
0 votes
1 answer
597 views

Vim problem installing python 3.5 from source

I have installed python 3.5 from the official source, and everything was working. I decided to try vim as a sort of command line IDE. Most plugins worked with vim, but when I tried YouCompleteMe for ...
jath03's user avatar
  • 101
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 ...
Josh's user avatar
  • 61
0 votes
2 answers
713 views

Why my dot key doesn't work properly in insert mode?

I have installed plugins YouCompleteMe and python-mode so as to use the auto-completion when editing a python file. But when I open an .py file and type . in insert mode, the cursor does not move ...
Romapecker's user avatar
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. ...
Owen's user avatar
  • 153
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 ...
mateuszb's user avatar
  • 171
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 ...
rikisa's user avatar
  • 153
1 vote
1 answer
676 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 ...
jlstr's user avatar
  • 111
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)] ...
balborian's user avatar
  • 143
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 ...
Grant A's user avatar
  • 39
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.
tommyip's user avatar
  • 219
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 ...
Frames Catherine White's user avatar
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 ...
Hamid Rouhani's user avatar
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'...
muru's user avatar
  • 24.7k
2 votes
1 answer
918 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 ...
Paweł Pela's user avatar
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 ...
Edy Bourne's user avatar