Open netpoetica opened 9 years ago
I wonder if maybe this has something to do with the fact that I have ExuberantCtags installed (via homebrew) for used with Tagbar, and I have also installed https://github.com/ramitos/jsctags - it looks like possibly I am getting "dumb" ExuberantCtags (not very good with JavaScript)
Another completion module might well be the problem. Try disabling that and see if it helps. I am, unfortunately, not very knowledgeable about Vim internals, and have no idea how the preferred completion module is determined. Load order, maybe?
@netpoetica might be late to the pic, but I have these set and working on Yosemite + Vim/MacVim.
set omnifunc=syntaxcomplete#Complete let g:tern_map_keys=1 let g:tern_show_argument_hints="on_hold"
note the difference in g:tern..
as opposed to g:term...
you have in your example. Also make sure you have a .tern-project
file in place as well. Hope it helps...
@fungl164 oiiiii! I can't believe I had written "term". It's such a silly mistake that I don't think my brain would process that I could have possibly made it :-) good catch, and thank you! I am still not having a lot of luck understanding what this plugin is actually supposed to be doing. I would love to see a video from someone showing what it is they are expecting Vim to do exactly with tern_for_vim and autocomplete. I don't think my expectations are matching what is actually provided
@netpoetica Check these out...
https://www.youtube.com/watch?v=kDdkfHWqVU0 https://www.youtube.com/watch?v=TIE9ZOqlvFo
you should be getting similar results as you would get from any other ide or code editor that uses ternjs in the background for js autocompletion...
Yea I don't seem to be having any luck either. Did you ever get it working or just give up? This is depressing lol...
No luck here, either.
I have installed vim on MacOSX, and browsed through issues here + looked at docs + watched some videos on Tern for Vim, but autocomplete will not work for me at all.
Update: having some strange behavior where C-X C-O does nothing, but C-n will open autocomplete suggestion box that is non-intelligent (aka var is the first suggestion, followed by basically anything I have defined in my app). Which is also strange because C-n is mapped to toggle nerd tree (but not in insert mode, I guess that's why it works)
I have followed http://vim.wikia.com/wiki/Omni_completion reco of setting
and added recommended vimrc settings
I have also tried
I don't have any remaps, that I can tell, that would break Ctrl + x, Ctrl + C bindings (my vimrc is available). I did try remapping to C-space as some suggest but still nothing.
Am I missing something, like maybe I need to install ctags or maybe there is a conflicting setting in my vimrc? The
:help tern
docs show that if I run into problems with autocomplete, I can try:set noshowmode
but this also has not helped.Not sure if it helps any to see my vim info, but will post here in case: