Friday, March 4, 2011

word-by-word movement in mac osx terminal

Here are some settings I made. Maybe will help others.

Before we start:
to produce "\033" in the next examples simply press ESC key.

So here are my settings:
option cursor left: \033b
option cursor right: \033f\033w [the extra \033w is for vim]
home: \033OH [capital letters O and H not numbers]
end: \033OF [capital letters O and F not numbers]
page up: \033[5~
page down: \033[6~

still working on getting command cursor left and command cursor right do what they should do.

1 comment: