[Edinburgh-pm] Another vim question
Aaron Crane
perl at aaroncrane.co.uk
Sun Apr 13 13:36:13 PDT 2008
asmith9983 at gmail.com writes:
> I want to run the following vim ex command 10 times
>
> :r !date
>
> to insert 10 lines of data into my file, but I don't know how to
> execute an ex command "count" times.
:for i in range(1, 10)
: r !date
:endfor
You should only need to type the first colon; Vim knows that you're in
the middle of a loop, so it'll fill in the second and third for you.
--
Aaron Crane ** http://aaroncrane.co.uk/
More information about the Edinburgh-pm
mailing list