martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.25k stars 258 forks source link

Vis for Prose? #932

Closed jetrosut closed 11 months ago

jetrosut commented 3 years ago

Do you think it would make sense and is possible to use Vis for prose? All I need, for example, is soft wrapping, being able to specify a max number of characters to be displayed in a line (setwidth=80), and indenting text on both sides. This could even be made into a plugin or two with better sentence recognition.

mcepl commented 2 years ago

I still believe that neo/vim currently works better for you. gq doesn’t exist and the only plugin knowing to me doing something like this (mine) is very unfinished and incomplete (patches welcome!).

If you are interested only in the soft-wrapping, then take a look at https://github.com/martanne/vis/pull/948.

rnpnr commented 11 months ago

I think I will close this now. We have soft word wrapping since 5d7d62c. As for indexing indenting text on both sides, I think that is a job for your terminal emulator. Its really easy to add via a patch to st for instance.

gq doesn’t exist

I'm not sure what exactly you want from gq but vis:command("map normal gq vip=<Escape>") has always done the job for me.

mcepl commented 11 months ago

I'm not sure what exactly you want from gq but vis:command("map normal gq vip=") has always done the job for me.

Much more complicated algorithm. E.g., wrapping of this changelog entry, wrapping of emails, etc. I have started vis-par, but it is suffering from horrible neglect on my side.