Hi all,
this question applies to both ST and ST2. It has to do with the line-breaking algorithm when working with word wrapping on, as is the case for LaTeX files.
Suppose the cursor is at the last line position in the window, and you want to type, e.g., “sublime”. You type the s, which appears on the current line; then you type the u, and both the s and the u are moved to the following line. All is well—it’s what you want to happen.
However, suppose you want to type a LaTeX command instead, e.g. \emph, starting from the same position as before. You type the , then you type the e, and nothing special happens: the \ remains on the first line, and the appears in the following line. The same is true if you use e.g. a brace ("{") or the inline math symbol “$”.
This is undesirable, as it makes the document harder to read. TextMate does not have this issue: 's, $'s, {'s etc. all move to the next line if necessary. Is there a setting to control this anywhere?
Thanks!
M
PS: I’m slowly porting the LaTeX plugin to ST2. I’ll post an announcement when I have something useable.