Front page and more than a hundred comments for a basic Vim command. Reddit is leaking.
Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made
191–200 of 279 posts
Re: Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made
#192Front page and more than a hundred comments for a basic Vim command. Reddit is leaking.
Re: Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made
#193Incidentally, I find :w to be very inefficient to type (any : command really, but there are not normally the most common operations), for such a common operation. I wonder if people remap it.
Re: Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made
#194Re: Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made
#195I almost exclusively exit vi using CTRL_W-CTRL-Q. It's a 3 finger chord that I use all the time to close vi windows. Makes sense that I'd use it to close the last one too.
You might as well use emacs at that point.
Re: Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made
#196Why is it useful? I would do ZZ to quit with saving, or :q! to quit without saving. Incidentally, I find :w to be very inefficient to type (any : command really, but there are not normally the most common operations), for such a common operation. I wonder if people remap it.
nore ; :
Re: Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made
#197Earlier quoted context omitted.
Yeah, but it's possible to quickly type the next command (that you would after exiting vim) as the encryption key. That said, given that neovim doesn't have this feature at all makes it less of an issue to me.
On my build, I have to confirm the key -- is this not the case with yours? I suppose one could naively type the same thing twice, but I feel like some caution also goes a long way. Driving without looking at the road is generally dangerous Any time I accidentally shift-mod my saves, I immediately see the encryption prompt, and back out with SIGINT. I don't really buy the problem, so to speak
Re: Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made
#198Why is it useful? I would do ZZ to quit with saving, or :q! to quit without saving. Incidentally, I find :w to be very inefficient to type (any : command really, but there are not normally the most common operations), for such a common operation. I wonder if people remap it.
Fun fact, ZQ quits without saving, like :q!
Re: Tell HN: Vim users, `:x` is like `:wq` but writes only when changes are made
#199Front page and more than a hundred comments for a basic Vim command. Reddit is leaking.