13 votes
Accepted

How to install YouCompleteMe with Clang completer offline?

I did the following to install (Although I could copy the whole ~/.vim directory to the new place instead of steps 3-6): Install vim 7.4: brew install vim Note: If you are using mac operating ...
Hamid Rouhani's user avatar
9 votes

Why doesn't YouCompleteMe complete function paramters?

Finally found it! Completing parameters is not a part of the YCM behaviour. See this YCM issue. There's an old fork from oblitum which could grant this feature. That's what misled me. Unfortunately,...
hippunk's user avatar
  • 301
9 votes
Accepted

Getting Python support for gVim 8.1 (Windows 10)

With dynamic python, the name of the python DLL (or shared object on Unix) is defined at compile time. In your case it is python36.dll. As you now want to use a different python version, this name ...
Ralf's user avatar
  • 9,147
8 votes

Is there a way to install youcompleteme plugin using vim 8.0 default plugin manager?

mkdir -p ~/.vim/pack/plugins/opt git clone https://github.com/Valloric/YouCompleteMe ~/.vim/pack/plugins/opt/YouCompleteMe cd ~/.vim/pack/plugins/opt/YouCompleteMe && git submodule update --...
tracyone's user avatar
  • 345
7 votes
Accepted

How can I keep the gutter width constant when using YouCompleteMe?

Install Vim 8 (released a few hours ago), and set signcolumn: set signcolumn=yes This is a actually available in Vim 7.4.2201 and later, but you really should go for the major release instead.
Sato Katsura's user avatar
  • 4,009
6 votes
Accepted

How to disable YouCompleteMe's error checking?

The g:ycm_show_diagnostics_ui variable controls this: The *g:ycm_show_diagnostics_ui* option When set, this option turns on YCM's diagnostic display features. See the _Diagnostic display_ section in ...
muru's user avatar
  • 24.8k
5 votes
Accepted

What does an `autocmd User` do?

In my understanding, that example creates a User autocommand named YouCompleteMe which will be fired by vim-plug itself, in order to load the plugin on demand. If I'm not mistaken, here's the place ...
VanLaser's user avatar
  • 9,680
5 votes
Accepted

Disabling hint popup

let g:ycm_auto_hover='' This disables the popup.
digital_revenant's user avatar
5 votes

YouCompleteMe: do I have to install extra plugins for semantic completion?

No, Jedi is bundles with YCM. Just use the installer per its documentation.
puremourning's user avatar
4 votes

What's the correct way to install YouComplete using vim-plug in vim/nvim?

It's installed in the .vim/ dir, because of call plug#begin('~/.vim/plugged') try: call plug#begin('~/.config/nvim/plugged') Instead, as answered above
Ben Whitaker's user avatar
4 votes
Accepted

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

For anyone else stumbling upon this; the reason why :iunmap didn't work is found in :help E31: - If the mapping is buffer-local you need to use ":unmap <buffer>". YouCompleteMe seems to just ...
Wolfie's user avatar
  • 667
4 votes

Make column for signs permanent in gVim

Apart from the hack with adding a dummy sign (which is what most sign plugins do), there is nothing that can be done. If that bothers you, cheer at vim-dev, that my patch gets integraged. (Als ...
Christian Brabandt's user avatar
4 votes
Accepted

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

The error message comes from the last line of your vimrc: Plug 'rdnetto/YCM-Generator' , { 'branch': 'stable'} This is a call to the Plug command of the Vim-plug plugin manager. To work, this line ...
statox's user avatar
  • 49.6k
3 votes
Accepted

How can I show the command line YouCompleteMe is using to compile my file?

Digging through the ycm-users Google group, I found a post by someone else who was trying to debug their .ycm_extra_conf.py flag settings and was using :YcmDebugInfo to get information about the flags ...
Josh's user avatar
  • 61
3 votes

How to get Youcompleteme to work with Vimscript?

Based on tracyone's vim configuration I have created a fork of necovim that automatically registers as vim omnifunc. Just add the plugin with your favorite vim plugin manager and it will work out of ...
IngoHeimbach's user avatar
3 votes

bypassing TAB auto-complete

You can always bypass the effects of a keypress by preceding it with a ctrl-v. For example, if you'd like to insert a literal escape character without returning to normal mode, you can do from insert ...
DJMcMayhem's user avatar
  • 17.5k
3 votes

Sharing gutter space between line numbers and YCM markers

You could try and use DynamicSigns. The documentation includes an example to show relative line numbers every 5 lines. Maybe you can adopt the example and use this plugin combined with YCM.
mike's user avatar
  • 949
3 votes
Accepted

Make column for signs permanent in gVim

You can do what some plugins do and create a dummy sign: sign define Dummy autocmd VimEnter,SessionLoadPost,BufRead * execute 'sign place 97349278 line=9999 name=Dummy buffer='.bufnr('%') All this ...
Tommy A's user avatar
  • 6,750
3 votes
Accepted

How do I complete Python3 with YouCompleteMe?

I tried to update YCM and recompile it. Now, it is fine. Python3 support was added for last month and I just updated YCM last month.
Vonfry's user avatar
  • 195
3 votes
Accepted

Installation of YouCompleteMe

After some tries, I finally find out what's going on with my installation of vim-youcompleteme, and I decided to answer my own question. First, building from source is not a good idea, unless you ...
Chromium's user avatar
  • 277
3 votes
Accepted

Why python autocompletion does not work if path to python binary is taken from variable?

Almost all Unix commandline programs end their output with a trailing newline, and Vim's system() doesn't remove this. This can be a difficult to spot with a regular :echo; the easiest way to check ...
Martin Tournoij's user avatar
3 votes

Auto-complete popup menu: make Enter trigger newline if no item was selected

To add to existing answers, I found empty(v:completed_item) to be unreliable, and sometimes it will be empty even though I have something selected in the pum. What worked for me was to use ...
Dog's user avatar
  • 31
3 votes

Understanding YouCompleteMe's 'Configuring through Vim Options' Mechanics

So, I did a bit of research and they were very helpful at the YouCompleteMe gist chat room. Here is what I know now. Also this is probably only python-completion specific, but I am sure the mechanics ...
mbilyanov's user avatar
  • 707
3 votes
Accepted

Completion pop-ups hijack arrow keys. Any way to disable that?

Remap <up> key to close popup menu and move cursor up when popup menu is visible: inoremap <expr> <up> pumvisible() ? '<c-e><up>' : '<up>' :h :map-expression :h ...
dedowsdi's user avatar
  • 6,238
3 votes

How do I display a Python docstring in Vim

What program is called when K is pressed is set by keywordprg. By default, this is set to man (the linux manual). Changing it to pydoc so as to get Python documentation will do the trick, but then you ...
Daniel's user avatar
  • 181
3 votes

How to call a plugin in a mapping?

The command line window (q:, :<C-f>) is a convenient place to run normal vim commands when editing :-commands. In this case, I would add to the mapping the opening of the command-line window and ...
D. Ben Knoble's user avatar
  • 25.8k
3 votes
Accepted

Cannot find implementation or library stub for module named "flask"

As we sussed out in the comments, this is from ALE+mypy, which needs to be installed in the virtual-env of the project. Why? I'm not 100% sure, but I suspect mypy is simply ignorant of virtual-...
D. Ben Knoble's user avatar
  • 25.8k
3 votes
Accepted

YouCompleteMe: do I have to install extra plugins for semantic completion?

Indeed you need to install Jedi separately. In case you have multiple instances of Python installed on your machine, Here are some information from the YouCompleteMe site to help you to install it ...
Vivian De Smedt's user avatar
2 votes
Accepted

How to make YCM load <GL/glew.h> by default?

So, after some iterations and tests, the answer to this is by using the g:ycm_semantic_triggers option as described here: https://github.com/Valloric/YouCompleteMe#the-gycm_semantic_triggers-option ...
Paweł Pela's user avatar
2 votes

Python imports autocompletion

I realize this is very late but I found this question long before I came across the answer so I'm leaving this here. By adding the following to your .vimrc file you can load in your python virtualenv ...
Murphy4's user avatar
  • 121

Only top scored, non community-wiki answers of a minimum length are eligible