Hi!
Do you really need a macro or do you want to insert a
line of '-'s?
If the latter is the case, I do it as follows:
Let's assume I want to insert '-' 50 times. Then I do
the following:
1. insert '-'
2. yank '-' to register a by doing: "ay
3. paste register a 49 times by doing: "a49p
Best wishes,
Georg
--- Hjellvik Vidar <[EMAIL PROTECTED]> wrote:
> Hello,
>
> how do I create a macro in vim that fills a line
> with '-'s from the end end of the line to e.g.
> position 50 so that
>
> Best regards
> Vidar Hjellvik
> Observational Methodology
> Institute of Marine Research
> P.O.Box 1870 Nordnes
> N-5817 Bergen, Norway
> Phone: +47 55 23 86 62
> E-mail: [EMAIL PROTECTED]
>
> becomes
>
> Best regards--------------------------------------
> Vidar Hjellvik------------------------------------
> Observational Methodology-------------------------
> Institute of Marine Research----------------------
> P.O.Box 1870 Nordnes------------------------------
> N-5817 Bergen, Norway-----------------------------
> Phone: +47 55 23 86 62----------------------------
> E-mail: [EMAIL PROTECTED]
>
>
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com