Live data from Hacker News

Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made

news.ycombinator.com

1–10 of 279 posts

Re: Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made

#7
post #3

I had a CS prof years ago tell us all the only thing we needed to know about vi(m) was the dammit key As in "escape-q-dammit"

Just throwing another one out there:

    `Ctrl + [`  instead of `Esc` to save some finger travel.

Re: Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made

#8
post #6

Keybinds (in normal mode): Shift + ZZ -> :x (save only if needed and quit) Shift + ZQ -> :q! (quit without saving)

huh. I'm using ZZ all the time, but I thought it is :wq

It's possible it was at some point, but my local copy of vim tells me it is 'same as ":x"' in `:help ZZ`
Post reply on HN