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
32 views

Semantic completion does not work for argparse.Namespace

I have a problem with the semantic completion for specific class argparse.Namespace with YouCompleteMe. Here's a minimal repro case I can provide: # .vimrc silent! call plug#begin() Plug 'ycm-core/...
Felixoid's user avatar
  • 111
4 votes
2 answers
454 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 ...
Nickotine's user avatar
  • 190
1 vote
1 answer
112 views

What is the difference between `au BufNewFile,BufRead *.py` and `au Filetype python` in this specific case?

The issue Consider the following two Vimrc configuration lines for the YouCompleteMe plugin: au BufRead, BufNewFile *.py,*.pyw match BadWhitespace /\s\+$/ au FileType python match BadWhitespace /\s\+$...
Attilio's user avatar
  • 369
0 votes
0 answers
34 views

How to make the plugin YouCompleteMe show libraries an import has?

My vim is nearly an ide, just have one thing missing. Is it possible to have this plugin show the modules of imported libs? Trying to get this feature that other ides have. Like how that small ...
Nickotine's user avatar
  • 190
0 votes
1 answer
97 views

Should I reinstall the YCM (YouCompleteMe) plug-in after :PluginUpdate?

I have the YouCompleteMe plugin installed. After the :PluginUpdate has been invoked should I repeat the installation process of the YouCompleteMe plugin ? I am 99% sure I should as I think the :...
LRDPRDX's user avatar
  • 103
0 votes
0 answers
23 views

Entering command-line window from quickfix window opened by YCM results in inconsistent Vim state

I think I'm supposed to file a bug report, however I'm not sure if for Vim or for YCM, so I'm asking this question to better understand what is really happening. YCM has the :YcmCompleter ...
Enlico's user avatar
  • 2,194
3 votes
0 answers
100 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 ...
jdc's user avatar
  • 141
0 votes
2 answers
637 views

How to get similar completion from coc as ycm?

I've been user of YCM for years now. Recently discovered coc-vim and trying it out. Looks like it provides loads of additional features on top of what YCM has. One thing that I can't figure out how to ...
laur's user avatar
  • 159
1 vote
1 answer
35 views

YouCompleteMe considers underscore as word character

YouCompleteMe considers underscores _ as word characters, which is desirable in most programming languages. But in TeX and LaTeX, this is not the case, especially where the underscore has a reserved ...
Gargantuar's user avatar
0 votes
0 answers
38 views

With YouCompleteMe and vim-matchup some mapping/abbreviation (?) is deleting inside a comment block in HTML file

Here's the minimal ~/.vimrc: if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug....
Enlico's user avatar
  • 2,194
0 votes
1 answer
508 views

Youcompleteme: shortcut key to format selection

According to this documentation :'<,'>YcmCompleter Format will format the selected text. I am struggling to map this to shortcut key <S-F2>. I have tried all of the following after having ...
Tryer's user avatar
  • 247
0 votes
1 answer
251 views

Signature popup has unreadable colors in YCM for Rust

I'm using Vim 8.2 with rust highlighter and YCM plugin for auto-completion and signature help. Everything works except method signature: It has same color for both color text and bg in parts like ...
d9ngle's user avatar
  • 163
0 votes
2 answers
895 views

How can I use clang-tidy with YCM?

I like YouCompleteMe, but it apparently has a major drawback for C/C++, which is no static analysis. Moreover, it disables Syntastic, which does provide static analysis, and they are generally ...
Sam Gallagher's user avatar
0 votes
0 answers
82 views

GoToDefinition used to show result in a split window, but now uses buffer

I have this mapping in my .vimrc: nnoremap gd :YcmCompleter GoToDefinitionElseDeclaration nnoremap gf :tab split \| YcmCompleter GoToDefinition<CR> When I press gd, it writes the command :...
d9ngle's user avatar
  • 163
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 ...
Bastien's user avatar
  • 123
0 votes
1 answer
391 views

YouCompleteMe doesn't complete functions from headers

After downloading YouCompleteMe from ubuntu repositories and installing it I have used this script as extra config. I suppose this config may help me with in-headers functions auto-completion. :...
Alex Hoppus's user avatar
1 vote
2 answers
357 views

How to call a plugin in a mapping?

I'm doing a project-wise refactor and I want to change variable names from camelCase to snake_case. I have YCM and vim-abolish installed. Let's say I have the following source file: dueDate = ... ...
sahinakkaya's user avatar
1 vote
1 answer
981 views

Vimtex+YouCompleteMe: How to disable autocompletion on plain text?

I have recently setup vimtex and YCM as the associated autocompleter. These work great in their intended scenario, however I believe the autocompleter is giving suggestions when I am typing plain text ...
Zeta-Squared's user avatar
1 vote
1 answer
120 views

noremap in .vimrc for YouCompleteMe does not work [closed]

noremap <leader>gdf :YcmCompleter\ GoToDefinition<cr> noremap <leader>gdc :YcmCompleter\ GoToDeClaration<cr> noremap <leader>gi :YcmCompleter\ GoToInclude<cr> ...
Tokubara's user avatar
  • 167
1 vote
1 answer
233 views

UltiSnips autoexpansion doesn't work with YouCompleteMe

I use UltiSnips and YCM, which usually works fine. However, I've noticed an issue for autoexpanded snippets. For example, if I have the snippet snippet beg "begin/end" bA \begin{$1} $0 \end{$...
boink's user avatar
  • 111
1 vote
0 answers
483 views

YouCompleteMe installation-problem with Vim, Vundle on macOS 10.4.6/hombrew

I tried to install YCM. After some faults, Vundle shows that the install is complete, but YCM-Server is down. When I ran install.py I allways get this kind of error ... ' fatal error: '...
CodingWithBeginnersMind's user avatar
1 vote
2 answers
870 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 ...
Magnus's user avatar
  • 111
1 vote
0 answers
589 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 ...
Enlico's user avatar
  • 2,194
3 votes
1 answer
567 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 ...
digital_revenant's user avatar
1 vote
0 answers
755 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 ...
Life5ign's user avatar
  • 111
1 vote
2 answers
1k 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 ...
Hiro 's user avatar
  • 31
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-...
Daniel's user avatar
  • 181
0 votes
2 answers
854 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 ...
user2891462's user avatar
1 vote
1 answer
3k 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 ':...
Luís de Sousa's user avatar
1 vote
1 answer
223 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?
Timothy Smith's user avatar
2 votes
1 answer
492 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 ...
Lorah Attkins's user avatar
0 votes
0 answers
407 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 ...
Avneesh Sirohi's user avatar
1 vote
1 answer
118 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 ...
Yves's user avatar
  • 1,013
1 vote
0 answers
92 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 ...
Salus's user avatar
  • 11
1 vote
1 answer
141 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 ...
Lazerbeak12345's user avatar
0 votes
0 answers
116 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 ...
Yves's user avatar
  • 1,013
2 votes
1 answer
169 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 * ...
Yves's user avatar
  • 1,013
0 votes
0 answers
1k 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, ...
Yves's user avatar
  • 1,013
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() ...
Yves's user avatar
  • 1,013
1 vote
0 answers
388 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 ...
Yves's user avatar
  • 1,013
1 vote
1 answer
1k views

How to insert a snippet with UltiSnips?

I am using the setup I found in this answer: UltiSnips and YouCompleteMe namely: " if you use Vundle, load plugins: Bundle 'ervandew/supertab' Bundle 'Valloric/YouCompleteMe' Bundle 'SirVer/...
fbence's user avatar
  • 667
1 vote
1 answer
683 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 ...
Grishka's user avatar
  • 113
2 votes
0 answers
136 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.
Marksj's user avatar
  • 21
1 vote
0 answers
266 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 /...
0xef's user avatar
  • 11
1 vote
0 answers
37 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 ...
User9102d82's user avatar
2 votes
0 answers
532 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 ...
applecider's user avatar
2 votes
2 answers
222 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 ...
Utumbu's user avatar
  • 121
5 votes
0 answers
220 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 ...
Sriram's user avatar
  • 101
2 votes
0 answers
616 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 ...
spacecadetmatt's user avatar
1 vote
1 answer
286 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 ...
Vladislav Kovechenkov's user avatar