Sunday, March 15, 2020

Wrapg text at col. 80 on large-ish files - performance aspects.

What is the recommended way to wrap files at column 80 or thereabout
when dealing with 5,000-10,000 lines files without a major performance
hit?

I have tried issuing a ':set syntax off' command followed by running
different flavors of the gw command in normal or visual mode but this
may not be the most efficient approach performance-wise.

I tried searching for lines longer than 80 characters and running 'gwap'
on the paragraph where they appear using the :g/long-line/gwap but this
doesn't seem to help.

It takes something like 10 minutes to complete this task suggesting I am
not doing it right.

Is there a better way to do it inside a vim session or should I exit vim
and run one of a number of utilities from the shell command prompt?

I would prefer staying with my vim session for reasons not directly
related to the issue.

Thank you.

CJ

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200315154450.GA9054%40turki.local.

No comments: