News for hackers. Stuff that matters.
Re:WordPerfect for Unix Character Terminals by amcpu on Wednesday April 12, 2023 @08:31AM (#35538595)
You could also use the vim :%!python3 your_script.py (where your_script.py does the work to format the text) command that takes the text of the buffer as stdin to the script and replaces the buffer contents with stdout of the script. This can also be combined with visual mode linewise to only replace specific lines of the buffer (must work on entire lines selected).

There are no comments on this comment yet.