derekwyatt / vim-scala

My work on integration of Scala into Vim - not a ton here, but useful for me.
http://derekwyatt.org
Apache License 2.0
1.09k stars 144 forks source link

Can't get it work with Vundle #75

Closed katcipis closed 9 years ago

katcipis commented 10 years ago

Hi,

This is probably some silly mistake that I am making, but I'm trying to install the plugin with Vundle:

https://github.com/katcipis/my.vim/blob/master/vimrc#L73

And no magic happens :-(. I can see the plugin installed on my ~/.vim, but when I open a File.scala there is no syntax highlighting, nothing. Is there something else that I have to do get it working ?

I executed the Vundle install command, actually all the others plugins that I have are working, except vim-scala.

Richard-W commented 10 years ago

Using vundle too i am experiencing the same issue. However, it is possible to enable syntax highlighting using

:set filetype=scala

manually in vim. Seems to be an issue with ftdetect, though i can't figure out what's wrong.

katcipis commented 10 years ago

@Richard-W Thanks for the reply, at least I'm not crazy :-). I don't know the internals of how vim works yet (still learning how to use it well :-), but if there is something I can do to help let me know.

The syntax highlighting is already helping a lot, thanks :D

Richard-W commented 10 years ago

I have a workaround until the problem itself is fixed.

$ mkdir -p ~/.vim/ftdetect
$ cp ~/.vim/bundle/vim-scala/ftdetect/scala.vim ~/.vim/ftdetect

This essentially copies the file detection from the bundle to your vim root. I have absolutely no idea why this is working, but it is.

This bug should probably be filed against vundle.

katcipis commented 10 years ago

Yep, worked like a charm :-). Already opened an issue on Vundle

Thanks again.

tautvilas commented 10 years ago

I have solved this problem by adding this line to .vimrc

autocmd BufRead,BufNewFile *.scala set filetype=scala
ches commented 9 years ago

Can anyone report if you're still having this issue with up-to-date vim-scala and Vundle?

There's nothing very unusual about the ftdetect and it's working fine with other plugin managers, not something that seems reproducible.

paramadeep commented 9 years ago

I'm facing this issue, I've latest of all.

ches commented 9 years ago

@paramadeep I just peeked at your dotfiles, assuming paramadeep/nagal is the correct place—your .vimrc is missing filetype off before the Vundle setup. That is required according to the Vundle README and gmarik/Vundle.vim#16. Could you add that and see if it resolves the problem?

Likewise for anyone who experienced this, you may want to confirm that config detail.

paramadeep commented 9 years ago

@ches it worked. My bad I missed it. Thanks a lot.

ches commented 9 years ago

No worries, glad that's solved it and hope that's all takes for most everyone else here too.

jamiis commented 8 years ago

@ches I'm still experiencing this problem. I just git pulled the latest version of vundle and insured everything was latest. :set filetype=scala fixes the problem on a per-open-file basis. My vimrc is here, maybe I am doing something wrong?

ches commented 8 years ago

@jamiis You have filetype plugin indent on on line 34, and again redundantly on 164-165—try removing the latter two lines. You also have syntax on on line 35 and and syntax enable on 345. Not sure, but that might also be confusing Vim. The latter probably shouldn't be necessary.

As Derek instructed here, the first thing we'd ask is that you minimize your config to rule out any other plugins as sources of problems. If that eliminates the issue, gradually re-enable plugins and settings until you find the culprit.

jamiis commented 8 years ago

@ches that fixed it! thank you.

dmitrime commented 8 years ago

doesn't work for me. even setting filetype=scala does not do anything. vimrc

copying scala.vim to ~/.vim/ftdetect also does nothing.

derekwyatt commented 8 years ago

This plugin is now part of the Vim distribution. You should just upgrade. On Tue, Oct 4, 2016 at 3:23 AM Dmitri notifications@github.com wrote:

doesn't work for me. even setting filetype=scala does not do anything. vimrc https://github.com/dmitrime/dotfiles/blob/master/vim/vimrc

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/derekwyatt/vim-scala/issues/75#issuecomment-251313348, or mute the thread https://github.com/notifications/unsubscribe-auth/AADzdEYjjNdelpW5I1KR_yTKtXovLRTrks5qwf7pgaJpZM4CkU3G .

dmitrime commented 8 years ago

@derekwyatt thanks! works with vim8.