|
|
|
How to move cursor a line at a time?
I often have a long command on the command line and would like to move through it by "lines" (say, about 130 characters). If I have a command that spans 3 or 4 lines in Terminal, is there any way to move right to the middle of it, or move back 100 characters at a time?
How to move cursor a line at a time?
How to move cursor a line at a time?
... is there any way to move right to the middle of it, or move back 100 characters at a time?" Bash uses readline as its command line editor. Nearly every readline command may be preceded with a numeric multiplier argument. For instance, M-4 M-f moves forward 4 words, and M-100 C-b moves backward 100 characters. As mentioned previously, if you don't have a Meta key mapped, use Esc instead.
How to move cursor a line at a time?
Excellente!!!
How to move cursor a line at a time?
If your commands are that long, you might also find it useful to edit the current command-line in your default text editor. Just press C-x C-e.
When you quit the editor the command is executed as normal. (You can change the editor used by setting the $EDITOR environment variable, it uses emacs by default I think). If you use vi-mode for the shell, the keybinding is esc-v. (or just v if your not in insert mode). |
SearchFrom our Sponsor...What's New:HintsNo new hintsComments last 2 days
Links last 2 weeksNo recent new linksWhat's New in the Forums?
The Editor's Corner...Here are some of my (robg) other projects...
Hints by TopicNews from Macworld
The macosxhints PollWhat version of OS X are you running as your main OS?
Other polls | 11,532 votes | 42 comments
|
|
Copyright © 2009 Mac Publishing LLC (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.05 seconds |
|