DEV Community

Discussion on: Using Vim As Your Shell Command-Line Scratch

Collapse
 
pbnj profile image
Peter Benjamin (they/them) • Edited

TIL: fc

Here are some complementary features:

  • If you have typed a long command but need to edit it in $EDITOR before executing it: ctrl+x + ctrl+e (Works in BASH out-of-the-box. Can be implemented in ZSH.)
  • If you have executed a command (e.g. $ echo 'helo world') and need to fix a typo before re-running it: $ ^helo^hello