Waffelson@lemmy.world to linuxmemes@lemmy.world · 11 months ago:wq!lemmy.worldimagemessage-square55fedilinkarrow-up1187arrow-down171
arrow-up1116arrow-down1image:wq!lemmy.worldWaffelson@lemmy.world to linuxmemes@lemmy.world · 11 months agomessage-square55fedilink
minus-squareIgnotum@lemmy.worldlinkfedilinkarrow-up10·11 months agoI use Vim daily, and i have absolutely no clue what that command would do, what would it do? Delete the document, save and quit?
minus-squarefiliberto_kunstlinger@lemmy.worldlinkfedilinkarrow-up12·edit-211 months 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-squaresurewhynotlem@lemmy.worldlinkfedilinkarrow-up1·11 months ago gg Huh… I always just used :1
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?
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
Huh… I always just used :1