Questions tagged [plugin-you-complete-me]

YouCompleteMe is an alternative completion engine for Vim.

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

YCM: how to toggle information box when cursor is over e.g. a function?

Using the YouCompleteMe plugin, I'd like to be able to move my cursor over e.g. a function in all supported languages (e.g. JS), and use some keybinding to toggle the information dialog on/off. (At ...
1
vote
0answers
17 views

How to fix/customise coloring for the autocompletion popup menu?

I'm not really happy with the syntax coloring of the auto-completion menu. Probably the pink-ish background color is the least unpleasant thing, but the grey foreground text is really not as readable ...
0
votes
1answer
14 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 ...
1
vote
0answers
56 views

Vim: How to have YouCompleteMe autocomplete shell script variable names and functions from “source”d files?

I use macvim with YouCompleteMe (YCM), which I recently updated and recompiled. I followed the YCM instructions for OSX. I'm also using iterm2, tmux and zsh, all of which are installed with brew and ...
0
votes
1answer
110 views

How to Keep Syntax Color but Disable Highlighting in Vim?

I recently activated auto-complete using YouCompleteMe and syntax color in Vim. However, a red highlighting color appeared. I tried to disable syntax color with syntax off, but this highlighting ...
2
votes
1answer
137 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-...
0
votes
2answers
61 views

Do not use the system Python 3 version in Vim

I am running Ubuntu 16.04, which requires the Python 3 system version to be 3.5: updating it to 3.7 breaks the package manager. At the same time, I want to use Vim with YouCompleteMe. YouCompleteMe ...
1
vote
1answer
261 views

“The ycmd server SHUT DOWN” with vim 8.1

I just upgraded my system, in the process vim was itself updated to version 8.1 (from 8.0). Now every time I start vim the following error is displayed: The ycmd server SHUT DOWN (restart with ':...
0
votes
0answers
14 views

YouCompleteMe messages truncated

I'm using YouCompleteMe for syntax checking, and long error messages at the bottom of the screen are truncated. How can I view the full message?
0
votes
0answers
19 views

How to prevent Smart-Tabs plugin from overriding youcompleteme tab completion

I've been looking for a solution to "tabs for indentation, spaces for alignment" and found that the Smart-tabs plugin does exactly what I want. However, when this plugin is active, it breaks the tab ...
2
votes
1answer
77 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 ...
0
votes
0answers
39 views

UltiSnips snippets not expanding in vim

I installed YouCompleteMe and UltiSnips together in order to use snippets. Here is my .vimrc: call plug#begin() Plug 'preservim/NERDTree' Plug 'ycm-core/YouCompleteMe' Plug 'SirVer/ultisnips' call ...
1
vote
1answer
20 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
0answers
10 views

Change YouCompleteMe GetType popup position?

The interactive GetType popup is a great feature, but I would love to set it so it spawns beneath the cursor, due to the fact that I sometimes need to read the above lines to know what parameters to ...
0
votes
0answers
110 views

Can YCM use gcc instead of clang for syntax checking

I'm using YCM to help me work with c++11 and it works well. However, it seems that YCM used clang to to the syntax checking. Here is an output of :YcmDebugInfo of one of my project: -- C-family ...
1
vote
1answer
25 views

How to automatically run a command after foregrounding

Preface: I might be asking the wrong question, so I'll just say what my problem is first. Whenever I use ^Z to background vim, then later (can be hours later) run fg to bring it back, YouCompleteMe ...
0
votes
0answers
40 views

How to reload vim buffer

I built a cpp environment with YCM, EasyGrep and some other plugins. With YCM, I can jump to declaration/definition, with EasyGrep, I can grep a keyword easily. But I found something weird: Saying ...
2
votes
1answer
43 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 * ...
0
votes
0answers
257 views

vim 8: C++ syntax highlighting has some minor fault

I'm using vim 8 to code C++11. I've installed the vim plugins: YCM, ALE, vim-code-dark and vim-cpp-enhanced-highlight, however, it seems that there is some error on syntax highlighting. As you see, ...
1
vote
1answer
271 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
0answers
125 views

ale can't update the status line for golang

I've succeeded in configuring a vim-c++ environment based on the plugin YCM and the plugin ale. I use YCM to do the auto-completion and ALE to hint me errors and warnings. I added the config as ...
1
vote
1answer
343 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
173 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
36 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.
1
vote
0answers
111 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 /...
1
vote
0answers
21 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 ...
2
votes
0answers
204 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
80 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 ...
4
votes
0answers
123 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
281 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
97 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
91 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
78 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
89 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
329 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 ...
0
votes
0answers
491 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 ...
3
votes
1answer
5k 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 ...
0
votes
1answer
227 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
771 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
699 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
77 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
43 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
821 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 ...
2
votes
4answers
974 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
3k 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
183 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
139 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
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 ...
0
votes
1answer
243 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 ...