Questions tagged [plugin-you-complete-me]

YouCompleteMe is an alternative completion engine for Vim.

Filter by
Sorted by
Tagged with
1
vote
1answer
37 views

How to insert a snippet with Ultisnips

I am using the setup I found in this answer: https://stackoverflow.com/a/22253548/2241241 namely " if you use Vundle, load plugins: Bundle 'ervandew/supertab' Bundle 'Valloric/YouCompleteMe' Bundle '...
1
vote
1answer
25 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 ...
2
votes
0answers
18 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.
0
votes
0answers
36 views

YouCompleteMe cannot find module

I am trying to get YCM working on Windows 10. Vim version: 8.1 64-bit GUI Since I'm using the regular gvim installer for Windows I have python support Compiler flags as follows: Compilation: cl -c /...
0
votes
1answer
65 views

YouCompleteMe does not work as expected

My process so far: Brew unlink vim Brew install macvim Brew link macvim Installing YCM with vim-plug. Running ./install.py from YCM folder. mkdir ycm_build cmake -G "Unix Makefiles" . ~/.vim/Plugged/...
0
votes
0answers
32 views

Is it possible to install YouCompleteMe on vim without using neovim?

I tried to download neovim (using Homebrew and pip) and I still did not manage to make YouCompleteMe work, it gave me several error messages regarding the neovim module and python. Is there any ...
1
vote
0answers
16 views

Wrap matches shown by You Complete Me

Is it possible to wrap the matches shown by YCM ? My current workaround is to decrease font size till I am able to see it and then increase font size. This is tedious and painful. Is there any other ...
1
vote
0answers
65 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 ...
1
vote
0answers
69 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 ...
3
votes
0answers
80 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 ...
1
vote
0answers
128 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 ...
1
vote
1answer
58 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 ...
0
votes
1answer
43 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 ...
3
votes
1answer
40 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 ...
0
votes
0answers
36 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 ...
1
vote
1answer
125 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
0answers
323 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 ...
1
vote
1answer
2k 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 ...
0
votes
1answer
141 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 ...
1
vote
1answer
411 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
votes
1answer
449 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
61 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
35 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 ...
1
vote
1answer
382 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
2k 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 ...
2
votes
3answers
538 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
2k 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 ...
3
votes
1answer
133 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
1answer
113 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
961 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
193 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
163 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
1answer
919 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
vote
1answer
1k 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 ...
2
votes
0answers
85 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 ...
4
votes
1answer
134 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
1k 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
162 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
606 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
2k 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
732 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
665 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 ...
2
votes
1answer
787 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
2k 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 ...
2
votes
1answer
308 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
534 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
875 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
472 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 ...
2
votes
1answer
745 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
2answers
531 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 ...