I usually have line numbers enabled, so this will also copy the line numbers if you select multiple lines. If you want to copy multiple lines without the line numbers, disable the numbers with :set nonu and then you can :set nu to re-enable them after you're done copying. Share Impro...
Pasting in Vim is kind of special and the behavior ofpandPdepend on whether you’ve yanked characters or lines. If you’ve yankedcharactersthen pasting will put those characters after or before the cursor (no surprises there). If you’ve yankedlines, however, pasting will put those lines aft...