The following gif demonstrates folding:

  • Nibodhika@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    3 days ago

    Yes, evil-mode would have bridged the gap, however I didn’t go emacs -> vim in one step, I left emacs back in 2017 because of pinky strain, and other ergonomic issues that made me switch keyboard layout as well (which made me lose lots of agility on emacs) and started using Pycharm for python dev, VSCode for other languages (including Markdown for note taking) and nano for system file edition. I tried some of the other suggestions here like atom, sublime, Kate, etc, but they never became my everything tool like emacs used to be. Very recently I discovered Helix, and I gave it a try and loved it, however the lack of plugin support made me have reservations on diving in. But the interaction mode is very close to vim, so I decided to give vim another go and went through a few tutorials on how to set Nvim up while refreshing muscle memory for vim movements and learning new stuff and it’s slowly becoming the everything tool that emacs once was for me.

    All of that being said, I don’t think I would use evil-mode on Emacs, the reason is that vim is made with those motions from the ground up, whereas in emacs they will be an after-thought so it will probably not be integrated enough (or more likely will require lots of configurations).

    I wasn’t able to see for myself how cin" worked within Vim*.

    It’s simple, imagine you have a line of code like so:

    my_var = "some string with spaces"
    

    If your cursor is almost anywhere on that line pressing ci" will erase the contents of inside the string and place you in insert mode, i.e. the line will look line this:

    my_var = "|"
    

    With | being the cursor in insert mode. There are other similar things, for example ca" (Change Around ") will also erase the quotes, very useful for example to change a hard coded string with a variable.

    • HayadSont@discuss.onlineOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      40 minutes ago

      Sorry fam for the late response! I was writing up a draft a couple of days ago, but that one somehow disappeared. Which…, is kinda peculiar as I don’t recall the last time a draft spoofed out of existence. Regardless, it really puts me off to start a reply all over. As such, I’ve been mustering motivation since 😅. Anyhow, thank you for your patience!

      Thank you (also) for sharing your journey around the many text editors! If anything, it reminds me how life has got many surprises for us. As such, being wed to any software, regardless of how powerful it may be, may still result in a break later down the line.

      Thank you (once more) for touching on ergonomics! I haven’t mentioned it, but I do experience some RSI-related pains/aches.

      Steps I've undertaken to alleviate the pains/aches. This has been put in spoilers, because I don't think it's very relevant for the subject matter.
      • I use a split keyboard, and hope to switch in the upcoming months to one of the most ergonomic keyboard around.
      • I have made changes to my workflow to become (mostly) keyboard-only, so little to no mouse/touchpad. Which led me to embrace and become more familiar with modal editing.
      • I have dabbled into the alt keyboard layouts and intend to make the switch when the aforementioned ergonomic keyboard arrives.
      • I have made many other changes to how I work in order to better align with ergonomics; laptop-stand so that it’s lifted to the appropriate height, worked on better posture, only making minimal use of my phone etc. And intend to back this up further with a height-adjustable desk.
      • Employ speech to text whenever I can afford it.

      Anyhow, I do have concerns on how Emacs’ default keybindings might be detrimental on someone using a regular keyboard. I believe this article makes an interesting case on this. That’s also one of the reasons why I’ve (almost) exclusively been on evil mode.

      I hope you’ve recovered completely from the strain on your pinky! And, hopefully, nothing else has been causing any issues since!


      Btw, the trick with ci" and ca" is pretty cool! Thank you for teaching me something new! FWIW, it was reproducible within Emacs’ evil mode*.