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 find some free time to delve in deeply. I was wondering (if as a stopgap), I could give YCM a list of all completions I want made available. Then I could at least make all the functions from the Standard Library syntax complete.

Or since I have code right now, that will take a source file, and output all completions for any packages it uses etc, I could generate this list of completions per file, and only have to regenerate when more packages were made use of.

Is this possible? It wouldn't end up smart I guess since it would not be able to detect when a . should be used as a trigger, but I think anything is better than nothing.

  • See :help ins-completion and :help 'complete'. – romainl May 2 '16 at 5:11
  • @romainl helpful to an extent. I guess I could use "dictionary" completion, but that would be dropping out of YCM, into normal vim completion stuff, unless I can set YCM to dictionary mode. I assume that is why you are commenting not answering. – Lyndon White May 2 '16 at 5:16
  • 1
  • 2
    @romainl that doesn't seem inline with your first comment -- which was a lookup to vim's documentation. YCM's documentation is not particularly excellent -- not compared to asking someone with experience, thus Stack Exchange sites. Most plugins have documentation and an issue tracker, yet we have 22 other questions on YCM. And 19 on NerdTree, 18 on Utilisnips, 17 on Airline, 15 on vim-latex etc. I'm not seeing what you are getting at? Vim itself has documentation and an issue tracker, perhaps we should not use this Stack Exchange site at all? meta.vi.stackexchange.com/questions/21 – Lyndon White May 2 '16 at 6:16
  • 2
    I think using syntax highlighting keywords and dictionaries are the way to do this for now. That's how I use YCM in minor filetypes (like logrotate or Upstart configuration files). – muru May 2 '16 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.