I'll try to illustrate as clear as I can.
Suppose I have the following text open in vim/nvim
_________
| |
| 9999 |
| |
---------
If select 9999
visually and then hit r8
, this will happen
_________
| |
| 8888 |
| |
---------
Can I do the same replacing character(s) with another one that's on a register, mostly my system clipboard ? Suppose I wanted to change the vertical bars on the box's border, replacing |
with │
and making something like
_________
│ │
│ 8888 │ <--- The bars are little longer though it may seem simliar to before
│ │
---------
I am aware that I can do this by selecting the box and using a substitute command, s/|/│/g
but that is not what I want. Furthermore, I don't think this method would work properly on visual block mode (with a vertical selection).
So, is there a way to do this using r
followed by something?
vv
for the vertical bar. See:help digraph