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

Wow this is pure gold. I cannot understand why I have never run across this until now. Thank you for pointing this out!


Like so many things, I found that by accident.

I also found editing you command and search history in vim by accident.

:q will quit the editor.

q: will open a buffer with a history of your vim commands, which are navigable and editable. Edit a command, then enter and it's executed.

In command history edit mode, :q to exit that mode.

q/ works for searches.




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

Search: