3

In Windows applications in general, we can step over words by using CTRL+ -> to step right and CTRL + <- to step left. But in Bash, those combinations print 3C and 3D correspondingly. Is there the analogue of such combination in Cygwin Bash at all?

tripleee
  • 175,061
  • 34
  • 275
  • 318
user3663882
  • 6,957
  • 10
  • 51
  • 92
  • This is not an issue of bash, but of the terminal emulation you use. All the shortcuts in there are configurable. So probably your question is: where can I control that? The answer: obviously depends on which terminal emulation you use... – arkascha Mar 29 '15 at 09:09
  • @arkascha Maybe... I just don't have too much experience in terminal scripting. So, now I'm using cygwin's terminal on windows 8, is there such facitily? – user3663882 Mar 29 '15 at 09:11
  • Oh, sorry, I have no idea about that. Never used it, never had a reason to. – arkascha Mar 29 '15 at 09:11
  • I'm voting to close this question as off-topic because https://superuser.com/questions/488157/how-do-i-make-ctrl-arrow-keys-move-forward-backward-a-word-at-a-time-in-cygwin-b/488158 – Dave Jarvis Nov 21 '18 at 21:21

1 Answers1

5

It depends on the shell, terminal, and your .initrc, but by default, Alt + F for forward and Alt + B for backward should work.

Check forward-word and backward-word in bind -p.

choroba
  • 231,213
  • 25
  • 204
  • 289