I am using the vi mode set -o vi. When I am going through previous history commands, and if I am selecting one command like

$sudo id

and if I am hitting shift+$ to the end of the line, cursor is always on d, where as in emacs mode it moves to after 'd'. So can anybody provide me a command so that the cursor will move to after 'd'?

I tried shift+A but this is for insertion mode. For the present situation I do not need this. Can anybody suggest any other command please? like Ctrl+E as the end of line in emacs mode.

New contributor
user19748 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

put on hold as off-topic by Christian Brabandt, grodzik, Ingo Karkat, Volker Siegel, statox Nov 9 at 8:38

  • This question does not appear to be about Vi and Vim family of editors, within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • You would better mention this is for shell command line editing instead of the vim software. – Liu Sha Nov 9 at 5:40
  • 3
    I'm voting to close this question as off-topic because this is unrelated to Vi but rather asks about readline behaviour. – Christian Brabandt Nov 9 at 6:39
  • That is a readline behaviour (assuming you are using bash). This has nothing to do with Vi. – Christian Brabandt Nov 9 at 6:40

Browse other questions tagged or ask your own question.