Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).



No need to test, it's documented: https://neovim.io/doc/user/editing.html#ZZ


> 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.


"Normal mode" ≠ "Insert mode"


Normal mode in vim does not have the meaning normal people associate with a normal text editor.


To 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.)


He did say in "Normal Mode"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: