Boyko Bantchev wrote:
On 9/13/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
(a) if the pattern is at the start of a line:

        :1,.-1d

(b) otherwise

        hdgg

will delete everything preceding it to the start of the file.

When I started answering Nikolaos, I was also initially
thinking of "dgg", but when I tried it it appeared to delete
the whole current line, and not only to the left of the pattern.
So I proposed "d0" and ":1,.-1d".  I am not aware why it
does not work for Nikolaos.

Best regards,
  Boyko


Ah, I forgot that gg is a linewise motion. Well, in that case let's replace hdgg by hdvgg -- where the v forces the motion to work characterwise (see ":help o_v")


Best regards,
Tony.

Reply via email to