Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap long line #31

Closed
julio-design opened this issue Nov 24, 2022 · 2 comments
Closed

Wrap long line #31

julio-design opened this issue Nov 24, 2022 · 2 comments

Comments

@julio-design
Copy link

julio-design commented Nov 24, 2022

Is there a way to wrap long lines?

What is happening:

+----------------------+
|                      |
| 1 some text in a line|
| 2                    |
+----------------------+

+---------+
|too long |
+---------+

Wraping the line:

+-----------------------+
| 1 some text in a line |
|   too long            |
| 2                     |
+-----------------------+

(I'm using st)

@kyx0r
Copy link
Owner

kyx0r commented Nov 25, 2022

Typically I would use gw, to wrap the text; but, that makes an edit. Nextvi is capable of rendering lines wrapped, but it is not being realized as an option and of course it has some complications like: treating wrapped line as one line, positioning cursor correctly, etc. If you really want this, start working on a patch. I can give some hints.

Kind Regards,
Kyryl

@julio-design
Copy link
Author

Oh I see. It's defined in static void vi_splitln. I'll try to figure out how to make it default and wrap the whole word instead of the overshooting letters of the word. And also respect the indentation.
I just need that, everything else is alright.

Cheers,

Julio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants