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

If you've set -o vi, then when you're editing a command line:

esc to get into command mode.

v (just the letter v) will open the current command line in a vi or vim session (depending on your default editor).

Now vim to your heart's content.

:wq will get you out of the vi/vim session, and execute whatever you did in your vi/vim session.




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: