10 ms·
You can also type ZZ (no colon) while in normal mode to exit and save. This also appears to only write when changes have been made (according to some testing i
by messe 4y ago
You can also type ZZ (no colon) while in normal mode to exit and save.
This also appears to only write when changes have been made (according to some testing in neovim on my local machine).
- Maursault 4y ago> You can also type ZZ (no colon) while in normal mode to exit and save. That's insane. What if you need to type the following words in all caps? DRIZZLE GRIZZLY BUZZARD PIZZAZZ The last would make that command from normal mode particularly annoying. Unless you meant when not in input mode... duh.
- acupofnope 4y agoHe did say in "Normal Mode"
- messe 4y ago"Normal mode" ≠ "Insert mode"
- anthomtb 4y agoNormal mode in vim does not have the meaning normal people associate with a normal text editor.
- shiomiru 4y agoTo be fair, `normal mode' may be a vimism. Both traditional vi's and nvi's man pages refer to the vim `normal mode' as `command mode', and `insert mode' (mostly) as `input mode'. (Though :set showmode still says Insert, and `insert mode' is occasionally used on the man pages too.)
- layer8 4y agoNo need to test, it's documented: https://neovim.io/doc/user/editing.html#ZZ https://neovim.io/doc/user/editing.html#ZZ