Skip to main content
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
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,287
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,019
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
  • 25k
5 votes
Accepted

Disabling hint popup

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

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

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

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
  • 71
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
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
  • 50.1k
4 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,298
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
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

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

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.7k
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
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,790
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
  • 717
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
  • 26.6k
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
  • 26.6k
3 votes

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

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
2 votes
Accepted

Alternative mapping for <Tab> key via YouCompleteMe

Credit to: https://github.com/micbou — answer If what you want is inserting the ᐅ symbol when the completion menu is not visible, adding these lines to your vimrc should do the trick: " Remove <...
6ft Dan's user avatar
  • 141
2 votes
Accepted

Temporarily Disable/Reenable YouCompleteMe Plugin

After you toggle the value of g:ycm_show_diagnostics_ui, run :YcmRestartServer and then reload the file with :e.
apollo's user avatar
  • 158
2 votes
Accepted

configure VIM with Python support for Debian 9.4 VM Instance

Here is what ended up working for me ./configure --enable-python3interp / --with-python3-command=/usr/bin/python3 Between this link and a suggested answer which has since been deleted, I cleaned and ...
lando2319's user avatar
  • 133
2 votes
Accepted

Why can't YCM be loaded automatically

It seems to me that the issue you're having is that your plug-in manager is correctly loading the YouCompleteMe plug-in, however it's not working right after being installed by the plug-in manager ...
filbranden's user avatar
  • 29k
2 votes

How to Keep Syntax Color but Disable Highlighting in Vim?

As noted by @Christian Brabbandt in the comment before, apparently, this is from YouCompleteMe auto-completion. As mentioned in YouCompleteMe, github about Diagnostic UI, This turns on YCM's ...
Hiro 's user avatar
  • 31

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