Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.5k
How to clear all registers?#24388
-
I have copy something to some registers. Now I want to clear them to keep registers clear. |
BetaWas this translation helpful?Give feedback.
All reactions
There is no default command to clear all the registers you filled previously.
A common approach is to use this kind of function:
command! WipeReg for i in range(34,122) | silent! call setreg(nr2char(i), []) | endforCall:WipeReg and this will iterate over all registers and sets them to empty.
Replies: 1 comment 1 reply
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
There is no default command to clear all the registers you filled previously. A common approach is to use this kind of function: Call |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thank you. |
BetaWas this translation helpful?Give feedback.