3 ms·
I have a question about this. If I type ":w" and then immediately do Ctrl+Z to suspend the session, it seems that Vim is always able to save the file before the
by amelius 4y ago
I have a question about this. If I type ":w" and then immediately do Ctrl+Z to suspend the session, it seems that Vim is always able to save the file before the editor suspends. Is this by design? Or was I just lucky so far?
Anyway, it would be great to have a default shortcut for this combination of keys too.
- jeffbee 4y agoCtrl+Z sends a signal to the process which is purely advisory. The process can do anything or nothing. Vim's extensive and unreadable signal handling logic can be gazed upon at: https://github.com/vim/vim/blob/master/src/os_unix.c https://github.com/vim/vim/blob/master/src/os_unix.c