Saturday, December 29, 2018

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

> 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]

bcause vim is a text _editor_, implementing layout and markup elements
can best be used from some markup language of your choice. because you
only edit text, layout is of no concern at that level (by 'vim
philosophy' AFAIK it is even strictly separated, just as normal and
insert mode). the number of columns in your vim buffer is just for
navigation when editing.

examples that you could try:

* markdown -- can produce a horizontal ruler by using three or more
hyphens, asterisks or underscores: https://daringfireball.net/projects/markdown/syntax#hr

* LaTeX -- has some elements to provide horizontal rulers and specify
the width of it: https://tex.stackexchange.com/questions/371286/draw-a-horizontal-line-in-latex

* HTML -- `<hr>' provides a horizontal line between the page borders,
width, height and color can be set. the <hr> tag is discontinued in
HTML 5, but still might work: https://www.w3schools.com/tags/tag_hr.asp

I use vim to make and edit text and use `pandoc' to translate everything
into a pdf file or different format. pandoc nicely makes a horizontal
ruler between the page margins, based on just `-----' in my vim .md
file. see: https://pandoc.org/MANUAL.html

//meine

--
--
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