Friday, December 28, 2018

repeat insert characters until end of line or getting the last col in a buffer?

Hi,

Is there a way to insert a repeat of characters to the width of a buffer?

That is, I can repeat a series of characters, i.e. <ESC>12i-<ESC> inserts 12 hyphens [1]

But if the repeat count is the terminal buffer width, is there a quick way to determine that or a variable of the last column?

I know $ is the end of line but <ESC>$i-<ESC> didn't work nor $|

The longer way is typing out to end of line to get the last column number at the status line then issuing the command, eg <ESC>127i-<ESC>

Thank you,
tony


[1] https://stackoverflow.com/a/5805239

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment