Thursday, March 5, 2020

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

> :%normal gqq

Interesting. What goes wrong is that the % operates on a certain number of lines. If the buffer has, say, 5 lines that are three times the length of the current window width, then the command will operate on the first 5 lines only.


However, each gqq will replace the line with three lines and the % will stop after it has processed 5 of what results.

John

--
--
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/621daa99-7c03-42fd-9a88-27a5c87b4c8a%40googlegroups.com.

No comments:

Post a Comment