Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
beaumartinez
on June 29, 2014
|
parent
|
context
|
favorite
| on:
Why I can’t stop using Vim
:x
(It's the same as :wq, but one character shorter.)
philsnow
on June 29, 2014
|
next
[–]
Even shorter:
ZZ
"Shift z z" is one key shorter than "shift colon x enter"
virtualwhys
on June 29, 2014
|
parent
|
next
[–]
Colon? That sounds painful, map it to some single keystroke. I use back slash on my tiny cherry keyboard.
noremap \ :
philsnow
on June 29, 2014
|
root
|
parent
|
next
[–]
Isn't backslash the default <leader> keystroke?
virtualwhys
on July 2, 2014
|
root
|
parent
|
next
[–]
yep, have leader mapped to space ;-)
Xcore
on June 29, 2014
|
prev
[–]
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:
(It's the same as :wq, but one character shorter.)