3 ms·
Hi, I have a question about Vim and Bash. If I type ":w[Enter]" and then quickly thereafter CTRL-Z, will my file be completely saved before Vim is suspended? O
by amelius 6y ago
Hi, I have a question about Vim and Bash.
If I type ":w[Enter]" and then quickly thereafter CTRL-Z, will my file be completely saved before Vim is suspended? Or can the suspend operation happen in the middle of the saving operation?
- floatingatoll 6y agoThe latter, if you're unlucky. You may be interested to know that :suspend is a command.
- amelius 6y agoThanks. I guess it would be nice if CTRL+Z mapped to :suspend under the hood.
- floatingatoll 6y ago:map W :w!<Return>:suspend<Return> This has no error handling and I don’t know how to make a new :command but it might hint you along to an answer.
- kc0bfv 6y agoTake your ctrl sequences and go back to Emacs ;-)