Hacker News new | past | comments | ask | show | jobs | submit login

:x

(It's the same as :wq, but one character shorter.)




Even shorter:

    ZZ
"Shift z z" is one key shorter than "shift colon x enter"


Colon? That sounds painful, map it to some single keystroke. I use back slash on my tiny cherry keyboard.

    noremap \ :


Isn't backslash the default <leader> keystroke?


yep, have leader mapped to space ;-)


No it is not the same. x only writes if not already written.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: