Waffelson@lemmy.world to linuxmemes@lemmy.world · 2 years ago:wq!lemmy.worldimagemessage-square111fedilinkarrow-up1202arrow-down170
arrow-up1132arrow-down1image:wq!lemmy.worldWaffelson@lemmy.world to linuxmemes@lemmy.world · 2 years agomessage-square111fedilink
minus-squarefiliberto_kunstlinger@lemmy.worldlinkfedilinkarrow-up13·edit-22 years agoexactly. 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
minus-squaremeow@lemmy.blahaj.zonelinkfedilinkarrow-up16·2 years agoActually not, binds and commands aren’t the same. ggdG only works as a series of inputs, while wq only works as a command (with the colon).
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up8·2 years agoExactly. The colon needs to be just before the w, not at the front of the sequence…
minus-squareCaptainBlagbird@lemmy.worldlinkfedilinkarrow-up6·2 years agoAnd while you’re at it, throw an ESC in there at the beginning, will ya?
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up2·2 years agoIf you want to cover every case (mode), indeed. 😊
minus-square👍Maximum Derek👍@discuss.tchncs.delinkfedilinkEnglisharrow-up3·2 years agoyeah, I screwed it up
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
Actually not, binds and commands aren’t the same.
ggdGonly works as a series of inputs, whilewqonly works as a command (with the colon).Exactly. The colon needs to be just before the
w, not at the front of the sequence…And while you’re at it, throw an
ESCin there at the beginning, will ya?If you want to cover every case (mode), indeed. 😊
yeah, I screwed it up
Huh… I always just used :1