Tip: TexMate cursor movement with arrows

The basic arrow movement of the cursor is as you would expect e.g. up one line, down one line, left one character, and right one character. Apple-up-arrow goes to beginning of document, apple-down-arrow goes to bottom of document, apple-left-arrow goes to beginning of line, and apple-right-arrow goes to end of line.

Now things get a little more interesting. Option-left-arrow and option-right-arrow move one word or identifier at a time. Ctrl-left-arrow and ctrl-right-arrow are similar but they recognize the parts of CamelCase and snake_case identifiers as separate words.

Now things get a little weird. Option-up-arrow and option-down-arrow are useful but difficult to describe clearly because they act strange some times. Basically they move to the top or bottom of a column. If the cursor is on an if statement pressing option-down-arrow will move the cursor to the next clause (else or end) assuming the code is indented properly. You will have to play around with this one a little to get the feel of it.

Control-up-arrow and control-down-arrow don’t move the cursor but they do page the document up and down. At first I didn’t see the point but then I realized its usefulness. Many times while coding there is a need to look at some code above or below the bottom of the screen. With these key combinations you can page to that code, look at it, and then begin typing. When you begin typing the screen will jump back to the previous location with the characters being entered where you left off.

(via CommonThread - Home)