Suppose we have something like,
here is some text.
here is some more text.
here is.
here is some.
Starting with gg 0
, how do I do something like v t. 4j
so that I can replace text up to a .
on each line?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityWhat you want is to replace the text, not select it
1,4normal! ct.Whatever
1,4normal! yt.
just copies the last line (well, I guess it copies each line 1 through 4, but doesn't store them as it would when yanking a visual block). The reason I was trying to select is so that I know what I am operating on.