Using normal-mode motions in command-line mode in Vim

前端 未结 6 822
旧巷少年郎
旧巷少年郎 2021-01-30 02:07

Is modal editing possible in command-line mode?

Some examples:

  • After writing !ls ~/foo/bar I want to db to delete bar
6条回答
  •  清酒与你
    2021-01-30 02:51

    in vim's command line mode: deletes a word

    in normal mode: q: goes to the command history (which can be edited with vim commands)

    see :help cmdline-editing and :help cmdline-window for more commands.

提交回复
热议问题