vim

VIM

print numbers

:for i in range(0, 2023) | put =i | endfor

E353: Nothing in register +

A workaround. In Vim, when you yank (copy) a piece of text, it is automatically placed into the unnamed register "" and the yank register "0.

remapping the y

There's no built-in way to do this in Vim, but you could accomplish it by remapping the y keystroke in your .vimrc file:

Tags