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. ggdG only works as a series of inputs, while wq only works as a command (with the colon).
ggdG
wq
Exactly. The colon needs to be just before the w, not at the front of the sequence...
w
And while you're at it, throw an ESC in there at the beginning, will ya?
ESC
If you want to cover every case (mode), indeed. ๐
yeah, I screwed it up
gg
Huh.. I always just used :1
I use Arch btw
Sister communities:
Community rules
Please report posts and comments that break these rules!
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.
ggdG
only works as a series of inputs, whilewq
only 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
ESC
in 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