Closed katcipis closed 9 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.
@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
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.
Yep, worked like a charm :-). Already opened an issue on Vundle
Thanks again.
I have solved this problem by adding this line to .vimrc
autocmd BufRead,BufNewFile *.scala set filetype=scala
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.
I'm facing this issue, I've latest of all.
@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.
@ches it worked. My bad I missed it. Thanks a lot.
No worries, glad that's solved it and hope that's all takes for most everyone else here too.
@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?
@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.
@ches that fixed it! thank you.
doesn't work for me. even setting filetype=scala
does not do anything. vimrc
copying scala.vim
to ~/.vim/ftdetect
also does nothing.
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 .
@derekwyatt thanks! works with vim8.
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.