• Ignotum@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    6 months ago

    I use Vim daily, and i have absolutely no clue what that command would do, what would it do? Delete the document, save and quit?

    • filiberto_kunstlinger@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      edit-2
      6 months ago

      exactly.

      gg -> go to top of document

      d -> delete (actually, it’s cut, but it destroys the mnemonic)

      G -> here is a modifier to “d” and tells it do “delete until end of document”

      w -> write current state of buffer to disk

      q -> exit program