New answers tagged

1 vote

How to replace more than one character without entering insert mode?

:1,$s/xy/gh/g has worked for me since 1987. I interpret it to mean "From line 1 to the end ($) s-search for xy, replace with gh, do it in this 'space'.
user3277564's user avatar
2 votes

How to print yanked data in replace mode?

I would do: R go to replace mode Ctrl r* paste Remark: if you have yank the clipboard from a visual selection you could also do: 1v replicate the visual selection shape from the original visual ...
Vivian De Smedt's user avatar
3 votes

How to print yanked data in replace mode?

You can visual-select the text you want to overwrite and then paste from clipboard. For a single word, that would be ve to select until the end of the word to replace and "+p to insert the ...
Friedrich's user avatar
  • 1,239
1 vote

How to print yanked data in replace mode?

If your terminal supports bracketed paste, I would expect R<paste> to work fine, where <paste> is something like Ctrl/Cmd-V, or a middle click, or whatever your system’s paste command is.
D. Ben Knoble's user avatar
  • 25.4k

Top 50 recent answers are included