Sublime Forum

Option to force line break at nth column?

#1

Is there an option like lineWidth 80? This is different to what wrapWidth does, as far as I can tell.

Cheers,
Guillermo

0 Likes

#2

Yeah, exactly. The line should be broken automatically at the desired column with an ‘\n’.

0 Likes

#3

How would this work? Say the line width is 5, for simplicity.
We’ve got this line:

abcde

Now I put the caret at the end of it (after the e) and hit f. Is this the result?

abcde f
Now what happens if I put the caret after the letter b, and press q? this?

abqcd e f
or:

abqcd ef
How do you tell whether the next two lines will be joined or not?

0 Likes

#4

Rather than at exactly the nth column, the lines would be broken at the closest word boundary <= nth column. Many editors have this feature; in Vim it’s called textwidth.

0 Likes

#5

Is this already possible to make automatic line breaks after a certain number of characters?

0 Likes

#6

push… :unamused:

0 Likes