Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times when small changes have to be made to very long commands.

(I am using fish actually, but I guess referring to bash I reach a wider audience.)

share|improve this question
2  
A quick solution see here: askubuntu.com/questions/359686/… –  jmunsch Mar 13 at 23:13
1  
From "info readline" character-search Ctrl+] A character is read and point is moved to the next occurrence of that character. character-search-backward Meta+Ctrl+] A character is read and point is moved to the previous occurrence of that character... Also consider Ctrl+a to move to the beginning of line. And Ctrl+e to move to the end of line. Alt+Shift+f to move forward a word and Alt+Shift+b to move back a word. –  jmunsch Mar 14 at 0:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.