I often use gq
to wrap code… But it isn't very smart when it comes to strings. For example, wrapping:
foo = bar("a b c d e f")
Might result in:
foo = bar("a b c
d e f")
Which, obviously, isn't nearly as useful as:
foo = bar("a b c " +
"d e f")
would be.
Is there any way to wrap text which takes this into account?