Loading ...
Sorry, an error occurred while loading the content.

Re: replace/change certain positions in line of text

Expand Messages
  • meino.cramer@...
    ... Hi Gary, thank you for your help! :) Best regards, mcc -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below
    Message 1 of 4 , May 20, 2013
    • 0 Attachment
      Gary Johnson <garyjohn@...> [13-05-18 20:36]:
      > On 2013-05-18, meino cramer wrote:
      > > Hi,
      > >
      > > is there a way to replace (for example) position 110-117 in each line
      > > of a text to (for example) to "." ?
      > >
      > > I only found regular expressions handling the length of matches but
      > > not their position in a line.
      > >
      > > Since what I want to acchieve lastly is lot of work I dont want
      > > to add n '.' or do wild calculations from positions to lengths
      > > of strings.
      > >
      > > Directly using the positions themselves would be nice.
      > >
      > > Is that possible with vim? How?
      >
      > See
      >
      > :help /\%c
      >
      > For example:
      >
      > :%s/\%110c.*\%118c/./
      >
      > Regards,
      > Gary
      >
      > --
      > --
      > 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@....
      > For more options, visit https://groups.google.com/groups/opt_out.
      >
      >

      Hi Gary,

      thank you for your help! :)

      Best regards,
      mcc



      --
      --
      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@....
      For more options, visit https://groups.google.com/groups/opt_out.
    Your message has been successfully submitted and would be delivered to recipients shortly.