Skip to content

Comment on Time-saving tips for Linuxparent

Comments

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.