• 𝕯𝖎𝖕𝖘𝖍𝖎𝖙@lemmy.world
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      edit-2
      6 months ago

      result: Very intuitive like vim.

      1. gg - top of the file
      2. /un - find “un” place cursor at u
      3. 2x - remove 2 characters
      4. ?- - search backwards for the character -
      5. d/like - delete everything up until the characters like

      See, intuitive!

      • 0x4E4F@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        6 months ago

        I don’t do that much search and replace in any terminal based text editor to actually use that on a regular basis. If I need edits like that, I use a GUI text editor.