majestictechie,

Don’t save: :q!Save: :x

synae,
@synae@lemmy.sdf.org avatar

I like :cq for if I want to cancel my git commit message (or similar)

user224,
@user224@lemmy.sdf.org avatar

Additionally for save and exit: :wq (read as write and quit) or ZZ (without colon).

palordrolap,

Dude's in bed. ZZ is clearly the superior choice for the sleepy vi user.

dukk,

Personally prefer :xprobably because it’s a little more ergonomic, as Z is all the way in the corner (QWERTY), and is the same key twice, while : and x are in two different spots, and can therefore be hit faster.

I know, it’s like millisecond differences, but, hey, I’m a vim user.

erev,
@erev@lemmy.world avatar

:x will save and exit. The difference between :x and :wq is that the latter will always write to the buffer, while the former will only do so if theres a change.

user224,
@user224@lemmy.sdf.org avatar

Sup. And ZZ is like :x, write only if change was made.

kat_angstrom,

:q!

OddFed, (edited )
@OddFed@feddit.de avatar

:!pkill vim

user224,
@user224@lemmy.sdf.org avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • linuxmemes@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #