Saturday, March 7, 2020

Re: Reformatting each line independently (how to apply an operation to each line)

Thanks for all the replies. It seems that:

1) There's no really clean way to do it. It seems to me that there should be something like "linedo" - analogous to "windo" and "buffdo". Of the workarounds, the %g/./normal
method seems the best. Thanks for that.

2) It just occurred to me that, for this specific case (reformatting each line), you could use "fmt -s" (at least on Unix/GNU version of "fmt").

--
--
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/2099308128.5943971.1583595399960%40mail.yahoo.com.

No comments:

Post a Comment