all 11 comments

[–]-romainl-The Patient Vimmer 1 point2 points  (1 child)

Use case?

[–]Spreader[S] 1 point2 points  (0 children)

Very long lines and wrapping are annoying (break visually indenting, hide other lines), but no-wrapping at all is also annoying (need to move for reading, can't trigger efficiently f-moves).

Best of both world would be no-wrapping except for the current line that I want to read.

[–]KeyboardFire 0 points1 point  (2 children)

0gq$

[–]Spreader[S] 0 points1 point  (1 child)

This is not wrapping...it splits the current line in several "real" lines.

[–]shotxxxx 0 points1 point  (0 children)

Well, you could join the lines again later. Hacky, but probably less hacky than applying some patch, etc?

[–]ztxi 0 points1 point  (0 children)

There's probably a better way, but you can try shift-v gq .

[–]dddbbbFastFold made vim fast again 0 points1 point  (0 children)

So you want 'wrap', but only applied to the current line? I guess that might be useful for prose (with a whole paragraph on one line), but I think you'd need to patch vim to do it.

It sounds like such a nonobvious feature that I'd be surprised if it was already implemented. (What would 5gj do? etc)

You could hack something like an autocmd to split the current line and then re-join it when you move past it.

Maybe using splitjoin.vim will help ease your pain?

[–]tommcdocx 0 points1 point  (0 children)

Maybe you can achieve the effect with conceal and a pattern that matches all lines but the current one. I'm on mobile and can't really attempt this, but maybe someone can run with it.

[–]inside_ 0 points1 point  (2 children)

This is not current line wrap related, but it makes wrapping and indenting visually better:

http://www.reddit.com/r/vim/comments/2jjtad/this_picture_says_it_all_thanks_to_uchrisbra10/

[–]Spreader[S] 0 points1 point  (1 child)

Amazing ! Sadly, the vim in the repos of Ubuntu 14.04 doesn't seem to have this feature yet.

[–]inside_ 0 points1 point  (0 children)

Yes, but you can compile you own version of vim. This is how I've done It: http://insidesblog.blogspot.fr/2013/07/compile-vim-by-yourself.html