I understand that there is a way to hide / collapse lines in Vim, but what I'm looking for is a way to select a block of text and have lines flow around Vim in or near column 80.
Basically, I want to use this in comments in situations where I add text to an existing comment that clicks on it for more than 80 characters. It would also be nice if he could insert a comment marker at the beginning of the line when it also wraps around. In addition, I would prefer that this solution is not intended to auto-update the entire file, since I have a specific convention that I use when it comes to ensuring that my structured code is under a string length of 80 characters.
This is mainly for Python code, but I'm also interested in learning a general solution to the problem in case I have to apply it to other types of text.
python comments vim formatting textwrapping
Joe holloway
source share