I have this problem where I try to yank/cut and paste a block of text with Vim and it has inconsistent behavior.
What happens is this:
In this text bellow, I what to cut the middle column and paste after the third. So I block-select (ctrl-v) the text, cut it (x), take the cursor to the end of the third column (now 2nd) and paste (p)
A 1 a
B 2 b
C 3 c
D 4 d
Sometimes Vim does it right and the result is this:
A a 1
B b 2
C c 3
D d 4
and some times, the result is this:
A a
1
2
3
4
B b
C c
D d
I need to control that behavior instead of being a hostage of it... How do I control this behavior?
Well, one answer is the UnconditionalPaste plugin (https://vimawesome.com/plugin/unconditionalpaste)
with a 'gbp' you paste a block inline (I remapped to [LEADER]pb)
it works...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With