On Mon, Feb 04, 2002 at 11:32:54AM +0000, Waider mentioned:
> According to John P. Looney:
> >
> > One problem with this...the ':r!' works fine, if it's a new line.
> > However, it always reads into the line below, at the start of the line. Is
> > there a way to read in a command output (or file) halfway through a line,
> > at the cursor ?
>> Not as I understand the semantics of the read command, but you could try
> putting a 'j' (or is it 'J'?) at the end of the macro to make it join up
> the lines.
Problem being, that if I had a line like;
<indexterm id="i-611f-27e6-1012824842"><primary>Patches</primary><secondary>settings</secondary></indexterm>
and I wanted to change that indexterm tag, I would delete it & type in
the macro (",index" at the moment).
,index<primary>Patches</primary><secondary>settings</secondary></indexterm>
this will give;
<indexterm <primary>Patches</primary><secondary>settings</secondary></indexterm> id="i-5947-3b12-1012825371">
Which a "J" won't help. I need to be able to read in between the ",index"
and the "<primary>". Just seems to be a major shortcoming in Vim.
Kate
--
_______________________________________
John Looney Chief Scientist
a n t e f a c t o t: +353 1 8586004
www.antefacto.com f: +353 1 8586014
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!