5

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 of my YouCompleteMe based completion works.

I see that the above scp command, copies the remote file to local disk, and copies it back to the remote location whenever I do :w. And it is very weird to me that YouCompleteMe has no completion suggestions!

What can I do for the YouCompleteMe suggestions to start working again?

2
  • I'd wager this is entirely dependent on how YouCompleteMe configures itself and knows what completion to provide. (Aside: for the time being, the <C-X> family really isn't bad—I love it)
    – D. Ben Knoble
    Commented Sep 30, 2019 at 20:38
  • netrw (vim's built-in plugin that handles remote files) is blacklisted by default in YouCompleteMe. maybe try let g:ycm_filetype_blacklist.netrw=0?
    – ngn
    Commented Oct 1, 2019 at 7:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.