Giter VIP home page Giter VIP logo

Comments (4)

itchyny avatar itchyny commented on May 28, 2024

I've tried that plugin and it works perfectly as the following screenshot.
screen shot 2014-09-20 at 11 31 27 am

from landscape.vim.

nightire avatar nightire commented on May 28, 2024

OK, I finally found the reason. I have some configurations in my vimrc like:

set background=dark
color landscape
autocmd! BufLeave * color landscape
autocmd! BufEnter,BufRead *.hbs,*.handlebars color grb256
...

I did this, because I want specific files use different colorscheme when I active their buffer, and as soon as I switch to another buffer, change the colorscheme back to the default one(which is currently landscape).

If I use other colorscheme as the default one, these settings will work perfect, but since I choose landscape as the default one, handlebars miss their filetype detection, but other files remain the same as usual.

Now the solution is, use landscape for handlebars file or change another default colorscheme. There must be some reason cause this weird issue, I just can figure out it.

from landscape.vim.

itchyny avatar itchyny commented on May 28, 2024

Firstly, that seems to be a problem of your configuration, not of landscape. This colorscheme does nothing with hbs extension and there cannot be a conflict.
Secondly, changing the colorscheme dynamically is not a good idea. It will not work well with splits.
Thirdly, I copied your config but I open a *.hbs file and see grb256's colors as you expect. Here's a screenshot.
screen shot 2014-09-20 at 8 17 35 pm

from landscape.vim.

nightire avatar nightire commented on May 28, 2024

This is what I got:

screen shot 2014-09-20 at 7 26 07

If I delete the line about handlebars, or change default theme to others, all is well.

But nevermind, maybe something wrong in my vimrc, for now I am happy with landscape for handlebars, you did an excellent theme btw.

And dynamically change colorscheme is actually a cool idea, even work with multiple split windows or tabs, I use this more than two years, I love this feeling. Thanks for your advice anyway.

from landscape.vim.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.