• PenguinCoder@beehaw.org
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      Just a habit, because you can run any command and get the stdout into vim in that method. Like for getting your shebang or an ls listing.

      • Korthrun@lemmy.sdf.org
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        1 day ago

        Then for the casual reader: don’t pick this habit up. There’s no reason to fork/exec a shell, invoke cat for the purpose of printing to stdout, then move the data into your buffer. You can just do :r somefile.txt.