Giter Site home page Giter Site logo

End blocks about riml HOT 4 CLOSED

goldfeld avatar goldfeld commented on August 20, 2024
End blocks

from riml.

Comments (4)

luke-gru avatar luke-gru commented on August 20, 2024

Hey, thanks for the encouragement!

I do hope to write a vim plugin soon using Riml, just a question of getting around to it 😄 Also, I plan on documenting it more thoroughly and am just finishing up with a vim-riml syntax colorer script so vim users will feel at home.

As for the syntax, all the sugary syntax parts are completely optional, so you can (presumably... with a few pitfalls that need documenting) compile any old vim plugin with Riml and it will basically spit out equivalent Vimscript.

In the tests, if you take a look at test/integration/*, you'll see I did just that with @tpope's pathogen plugin and another plugin called smartinput (which you should check out if you haven't already).

Feel free to ask me anything, and of course, to contribute 😉

Edit: I misread your comment as 'I hope you get around to doing at least one plugin', freudian slip ..? Let me know when you get around to it, and send me a link.

from riml.

goldfeld avatar goldfeld commented on August 20, 2024

Well that sounds good to me. I'll confess one of the (silly) reasons I would like using Riml is for keeping my riml files in a src folder, all organized and split up into logical units, and then have it compile it all into a single production VimL file (or autoload and plugin files). Don't know if your compiler currently has that option, that's why I'm saying--that'd be pretty cool.

And yeah I meant a plugin from me, but one from you would be cool too.

from riml.

luke-gru avatar luke-gru commented on August 20, 2024

Hey, just worked a bit on the 'include' functionality you were talking about, to compile everything into 1 VimL file.

Basically, if you have main.riml, class1.riml and class2.riml, and class1 inherits from class2, here's what you do to end up with a file 'main.vim' that will have all VimL from these files included in the proper order.

in main.riml

riml_include 'class1.riml'
" I can now use Class1, even if it depends on Class2

in class1.riml

riml_include 'class2.riml' " Class1 inherits from Class2, so Class2 must be included before I define Class1
" ... code that defines Class1

in class2.riml

class Class2
  " ...
end

To compile main.vim, go the directory where these files reside and type 'riml -c main.riml'. For this to work, you'll need the new Riml version (>= 0.2.0)

Thanks!

from riml.

goldfeld avatar goldfeld commented on August 20, 2024

Looking really good, thanks! I'll see if I can get some time with it on the weekend.

from riml.

Related Issues (20)

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.