Questions tagged [plugin-you-complete-me]
For questions about the YouCompleteMe plugin. This plugin is an alternative completion engine for Vim.
34
questions with no upvoted or accepted answers
8
votes
0
answers
862
views
Can I give YouCompleteMe a static list of completions?
I am using the Julia programming language, and as of right now, there are no good syntax-completer for VIM.
I am working on one, but haven't fully got my head around how to hook into ycmd.
Til I ...
5
votes
0
answers
217
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 ...
3
votes
0
answers
86
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 ...
3
votes
1
answer
2k
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 ...
2
votes
0
answers
133
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.
2
votes
0
answers
513
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 ...
2
votes
0
answers
591
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 ...
2
votes
0
answers
53
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 ...
2
votes
0
answers
114
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 ...
2
votes
0
answers
1k
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 ':...
2
votes
0
answers
966
views
Code Completion for Module based JavaScript files in Vim
I've been trying to get my Vim setup similar to other IDE's (pycharm, webstorm) and I'm hoping to get the functionality of having code completion for injected objects. I have YouCompleteMe and ...
2
votes
0
answers
428
views
gvim on windows - compiled ycm plugin now crashing on start
I installed the YouCompleteMe(YCM) plugin and compiled it using the provided instructions, one after the other for all options excluding rust. Below is a reproduction of the commands I ran, the reason ...
1
vote
1
answer
888
views
Vimtex+YouComplteMe: 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 ...
1
vote
0
answers
482
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:
'...
1
vote
0
answers
569
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 ...
1
vote
0
answers
730
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 ...
1
vote
1
answer
204
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?
1
vote
0
answers
88
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 ...
1
vote
0
answers
378
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
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/...
1
vote
0
answers
247
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
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 ...
1
vote
0
answers
199
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
0
answers
129
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 ....
1
vote
0
answers
779
views
vim youcompleteme not working
Currently i'm working on Node.js and I wanted some additional plugins which can help me learning this new technology. I installed tern_for_js and YouCompleteMe from Vundle. I also compiled YCM, but I ...
0
votes
0
answers
27
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 ...
0
votes
0
answers
12
views
How to chang the postion of the displayed function information in YouCompleteMe
I was wondering how to change the position of the function input information that pops up when using you complete me. There are two problems with it as it is now.
First, the inputs of the function are ...
0
votes
0
answers
21
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 ...
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....
0
votes
0
answers
74
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 :...
0
votes
0
answers
394
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 ...
0
votes
0
answers
113
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 ...
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, ...
0
votes
0
answers
771
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
...