I'm trying to code something that will either ignore the screen wrap (not at full width) or a method of changing screen wrap width via commands. I haven't found either of these currently.
Scenario: Screen wrap width is set to 85 characters. It wraps normally. I want a line to display 200 characters without wrapping. My screen can easily handle this width. Is it possible to do so without affecting the other lines?
It'd probably be better to use SetOption with wrap, rather than wrap_column, since you wouldn't need to hard code your wrap values into your plugin/script/etc.
pseudo code go
if wrap = 1
set wrap = 0
note "some stuff"
set wrap = 1
else
note "some stuff"
end
I was going to suggest that, but the wrap option doesn't stop wrapping exactly, it stops wrapping at the nearest space. So with wrap off, it truncates at column 80 (or whatever column you have set), but with wrap on, it truncates at the first space before the designated column, which looks better because words don't break in two. Basically this is because the client needs to allocate memory for the line when it starts, so it needs a wrap column figure.
I think the highest value is 500, so you could make it 500 if you want to sort-of stop wrapping.
That actually explains a lot. In the past I've been extremely annoyed with the behavior of that option but I never really dedicated any time to figuring out why it wasn't working the way I'd expected it to. You should change the wording (or better yet, make it do what it seems like it should do, or both, or nothing ;))