On Thu, Jul 11, 2019 at 9:55 AM Paul Jolly <[email protected]> wrote:
>
> Hi all,
>
> I've tried various permutations of search terms, but so far turned up a blank.
>
> Is there a function/similar that will allow me to set buffer contents
> between a start and end byte offset?
>
> If there isn't, I have a "backup" in the form of a :substitute like:
>
> %s/\%3l\%1c\_.*\%4l\%1c/hello\r/g
>
> (because I'm also deriving the line and col whilst deriving the byte
> offset) but I suspect the byte-offset based approach will be
> considerable more efficient if available.
>
> Thanks,
>
>
> Paul

see
    :help go
    :help v_c

You could "go" to your starting point, set Visual mode, go to your
ending point, and then "c"hange or "s"ubstitute.

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXu6%2BMi7Bs3CaHrkiz4ejcZef96Gq18XJcvdgMa%2BGEk0zQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui