How to clear vim registers effectively?

Since that venerable answer on the mailing list, linked by @romainl, we have setreg(‘a’, []) that clears the register. Thus, the code could become: let regs=split(‘abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/-“‘, ‘\zs’) for r in regs call setreg(r, []) endfor

Copy from one register to another

To copy or swap values between registers you can use the :let command, for example to copy the contents of the b register to a: :let @a=@b Or copy the contents of the ” register to a: :let @a=@” Check this Vim Tip for some good key mapping suggestions: Comfortable handling of registers

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)