• 9 Posts
  • 376 Comments
Joined 3 years ago
cake
Cake day: September 16th, 2023

help-circle








  • Exactly! Making a DSL and using it like a programming language introduces necessities that will not be considered as throughly if they where added to a “real” language.

    I once wanted a DSL for a calendar program I was making (so the user could define complex events and stuff). So I made a simple programming language that could be embedded in the program, kinda like how lua is commonly used.



  • owsei@programming.devtomemes@lemmy.world•Only me?
    link
    fedilink
    arrow-up
    10
    ·
    4 months ago

    Vim has several modes. INSERT mode let’s you write text, NORMAL mode let’s you navigate (with h,j,k,l and others) and perform operations on the text with your keyboard, like “dw” to Delete Word or “A” to enter insert mode at the end of the line.

    You can use arrow keys to navigate in insert mode. However I just press escape, which changes to normal, navigate to where I want to, then change to insert mode.

    I may seem like this makes simple navigation complex, and it kinda does. But complex navigation becomes easier.

    Vi (and vim and neovim)'s primary concern is viewing and editing code, writing is secondary (although it’s still an excellent experience)