Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plugin-you-complete-me]

YouCompleteMe is an alternative completion engine for Vim.

1
vote
1answer
27 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 ...
0
votes
0answers
15 views

How to make YouCompleMe ignore certain custom syntax?

I have a tpl file, which contain a custom proprietary language and javascript. YCM correctly reads the js, but goes grazy on the custom code. Like: $$GENERATE-HTML$ | Item unkown <script> ...
-1
votes
1answer
44 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 &...
1
vote
0answers
20 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 ....
2
votes
0answers
26 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 ...
0
votes
0answers
43 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
489 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
78 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 ...
0
votes
1answer
473 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 ...
0
votes
0answers
123 views

Unable to compile the YCM Plugin

I have installed YouCompleteMe (YCM) using Vundle successfully: Plugin 'VundleVim/Vundle.vim' Helptags However, I am unable to compile the YCM plugin. The instructions to be followed are: cd ~/....
0
votes
0answers
312 views

How to enable YCM after installing with vim-plug

So I'm using Vim-Plug and when I run :PlugInstall I get: Updated. Elapsed time: 0.036997 sec. Finishing ... Done! vim-plug: Already installed YouCompleteMe: Already installed So I suppose I must ...
3
votes
1answer
58 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(...
0
votes
0answers
129 views

Configure YCM to show linting errors

YCM claims that it makes Syntastic superfluous, but unfortunately all the guides I have seen that shows how to display eslint warnings in VIM use Syntastic, and the docs for YCM doesn't mention it. ...
0
votes
1answer
52 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, ...
1
vote
1answer
428 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 ...
0
votes
1answer
114 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 ...
0
votes
1answer
88 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 ...
1
vote
0answers
427 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 ...
-1
votes
1answer
470 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 ...
0
votes
0answers
486 views

How can I toggle YCM to display function signature on demand

When YCM auto-completes function names, a preview of function signature is displayed at the top, which is very helpful. What I'd like to do is to force the display when (say) I'm typing in the ...
3
votes
0answers
64 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 ...
3
votes
1answer
105 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 ...
1
vote
1answer
635 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
93 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 ...
0
votes
1answer
334 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 ...
1
vote
2answers
1k 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/...
1
vote
0answers
542 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 ':...
0
votes
2answers
352 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 ...
0
votes
0answers
107 views

argument can't be <type 'unicode'> in gVim on Windows

I got this message at the bottom as I open some python file (.py). Seems like it comes from Youcompleteme plugin. On my mac everything goes fine, but on Windows machine this error appears and ...
3
votes
1answer
630 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: ...
0
votes
1answer
1k 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 ...
3
votes
1answer
266 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 ...
0
votes
1answer
326 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>...
-1
votes
2answers
449 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 ...
0
votes
1answer
334 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 ...
0
votes
0answers
1k views

How to make YouCompleteMe complete parenthesis

I installed YCM plugin. And I want YCM to complete left, right parenthesis. I made a simple cpp source file. In main function, I declared vector<int> v(10, 0); when I pressed dot(.), vector ...
1
vote
1answer
401 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 ...
0
votes
0answers
229 views

semantic completion of YouCompleteMe extremely slow in windows(in comparision to linux)

My vimrc settings in windows&linux are almost identical. But the difference in the speed of semantic completion is so obvious: filetype: PHP Linux: Windows: And I have set this in vimrc: ...
0
votes
2answers
408 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 ...
3
votes
1answer
195 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. ...
7
votes
1answer
1k 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
91 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 ...
1
vote
1answer
366 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 ...
2
votes
1answer
435 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
0answers
649 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
1answer
3k 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.
6
votes
0answers
443 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 ...
6
votes
2answers
28k 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
492 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'...
3
votes
1answer
613 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 ...