How to Paste over Selected Text without Overwriting the Unnamed Register in Vim

Summary: paste with P in visual mode. It’s painful to paste over selected text in Vim, because the unnamed register is overwritten by the selected text. Thus, we can not paste the original yanked text twice. If you have a file: 1 2 hello kitty You want to copy hello , paste it over kitty, and paste it again. You type these commands in Vim. 1 2 3 4 5 gg " move to the topyy " copy current linejV " move to the next line and select itp " paste over the select linep " paste again You expect to get:

How to Ignore Kernel Upgrades on Arch Linux

Warning: Ignoring kernel upgrades makes the system more vulnerable due to the lack of the latest security fixes. Ignore Temporarily Pacman’s --ignore option is used to ignore package upgrades. You can ignore multiple packages, separated by commas. This command upgrades the system but ignores three kernels. 1 sudo pacman -Syu --ignore linux,linux-header,linux-lts,linux-lts-headers,linux-zen,linux-zen-headers Ignore Permanently Typing --ignore packages takes some time1. Sometimes, you might forget to type it. You can permanently ignore kernel upgrades by adding this to /etc/pacman.conf in the [options] section. 1 IgnorePkg = linux linux-headers linux-lts linux-lts-headers linux-zen linux-zen-headers Note that packages in IgnorePkg are separated by spaces.