I can select lines using SHIFT + V
, then selecting lines using up down left right keys, then copy them using y
(yank them) and paste them using p
(put).
I can similarly select data block using CTRL + V
, then selecting lines using up down left right keys, then then copy them using y
(yank them) and paste them using p
(put).
But when I am pasting data blocks using p
, it always pastes data after the current cursor location. Which means, if I want to paste to the beginning of lines, it won't work - it copies the data after the first character. So how can I paste data block at the beginning of a line in vim in visual mode?
Curently I do this by pasting at the second cursor location, deleting the characters at the beginning of line, and then pasting them after the previously pasted block.