Comments (16)
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.
from vim-scala.
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.
from vim-scala.
@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
from vim-scala.
Yep, worked like a charm :-). Already opened an issue on Vundle
Thanks again.
from vim-scala.
I have solved this problem by adding this line to .vimrc
autocmd BufRead,BufNewFile *.scala set filetype=scala
from vim-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.
from vim-scala.
I'm facing this issue, I've latest of all.
from vim-scala.
@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 VundleVim/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.
from vim-scala.
@ches it worked. My bad I missed it. Thanks a lot.
from vim-scala.
No worries, glad that's solved it and hope that's all takes for most everyone else here too.
from vim-scala.
@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?
from vim-scala.
@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.
from vim-scala.
@ches that fixed it! thank you.
from vim-scala.
doesn't work for me. even setting filetype=scala
does not do anything. vimrc
copying scala.vim
to ~/.vim/ftdetect
also does nothing.
from vim-scala.
This plugin is now part of the Vim distribution. You should just upgrade.
On Tue, Oct 4, 2016 at 3:23 AM Dmitri [email protected] 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
#75 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADzdEYjjNdelpW5I1KR_yTKtXovLRTrks5qwf7pgaJpZM4CkU3G
.
from vim-scala.
@derekwyatt thanks! works with vim8.
from vim-scala.
Related Issues (20)
- sealed and abstract are not highlighted when used as class/trait modifiers
- Case indentation persists after pattern match block ends HOT 1
- Suffix .sc is not supported HOT 3
- Integration into Vim runtime HOT 7
- Syntax Highlighting in Pattern Matching HOT 1
- Problems opening a directory
- for loop with multiline iteration has incorrect indention for closing brace HOT 1
- Syntax highlighting error when using complex shebang HOT 1
- bash script in README.md needs fix HOT 5
- Indentation issue in new files HOT 2
- errorformat is missing column for errorformat HOT 2
- syntax brace matching for classes with parametric fields
- SortScalaImports adds an empty line to multiline import clauses
- Code formatting feature HOT 4
- [Highlight] partially broken within `tpope/vim-markdown` fenced code HOT 3
- [Hightlight] Add Chisel keyword support HOT 1
- Setting `compiler sbt` stops the quick fix window from opening HOT 2
- Triple Quasi Quotes containing " within processed string literals
- Add CI to the project HOT 2
- Distribute the sbt compiler plugin with Vim
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-scala.