New answers tagged replace
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'.
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 ...
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 ...
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.
Top 50 recent answers are included
Related Tags
replace × 261search × 73
regular-expression × 63
substitute × 31
visual-mode × 18
key-bindings × 14
cut-copy-paste × 14
vimscript × 11
command-line × 10
find × 10
neovim × 9
search-replace × 9
macro × 8
repeated-commands × 8
cursor-motions × 7
register × 7
visual-block × 7
global-command × 5
multiple-lines × 5
vimrc × 4
buffers × 4
normal-mode × 4
insert-mode × 4
escape × 4
autocmd × 3