Y
Hacker News
new
|
ask
|
show
|
jobs
by
beaumartinez
4367 days ago
:x
(It's the same as :wq, but one character shorter.)
2 comments
philsnow
4367 days ago
Even shorter:
ZZ
"Shift z z" is one key shorter than "shift colon x enter"
link
virtualwhys
4367 days ago
Colon? That sounds painful, map it to some single keystroke. I use back slash on my tiny cherry keyboard.
noremap \ :
link
philsnow
4366 days ago
Isn't backslash the default <leader> keystroke?
link
virtualwhys
4364 days ago
yep, have leader mapped to space ;-)
link
Xcore
4367 days ago
No it is not the same. x only writes if not already written.
link