The way to distinguish command-mode and insert-mode in Bash's Vi command line editing

后端 未结 3 1502
借酒劲吻你
借酒劲吻你 2020-12-07 16:32

I\'m always little bit confused when bash in vi-mode is switched to insert-mode, because it doesn\'t give any tip about used mode (command or edit). Is there any way to dist

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-07 17:07

    After years of using vi mode in korn shell, I have basically trained myself to just tap ESC a few times before I type any commands, and ESC then i to start typing.

    The basic premise being that if you just hit ESC, you know precisely what mode you are in.

提交回复
热议问题