I wanted to have a separate laptop where I only use the terminal for my use cases. At the moment I am somewhat confident using the terminal, but I think limiting myself to tty only would build my confidence even more. Any tips?

  • F04118F@feddit.nl
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    Try running this: vimtutor

    If you are already aware of hjkl, skip to the part where you learn movements:

    /movement

    Then look up surround (ysw is usually the command to surround a word, ys3w the next 3 words, etc)

    It’s pretty neat.

    • GravitySpoiled@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      6 months ago

      That is some very useful commands, thx! But I don’t think I’ll be using it often and hence I’ll lose the skill. I know ctrl+vxs or f etc because I use them very often. Anything that I don’t use is forgotten even if I’d use vim

      • F04118F@feddit.nl
        link
        fedilink
        arrow-up
        0
        ·
        6 months ago

        Exactly! If you only have to edit small text files on a server once in a blue moon, nano is much less biomemory-heavy. But if you regularly write docs and code in l vim or neovim, it starts to pay off after a week or two.

        I really enjoyed learning to quickly select and change entire words or lines, doing things like: :%s/replace_this_text/with_that/g Etc. If you enjoy that, you will soon get to a point where you miss the motions in your regular editor and install a vim extension in VS Code and stuff, just before fully switching to neovim