Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to clear all registers?#24388

Answeredbyfynnfluegge
otakutyrant asked this question inQ&A
Discussion options

I have copy something to some registers. Now I want to clear them to keep registers clear.

You must be logged in to vote

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), []) | endfor

Call:WipeReg and this will iterate over all registers and sets them to empty.

Replies: 1 comment 1 reply

Comment options

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), []) | endfor

Call:WipeReg and this will iterate over all registers and sets them to empty.

You must be logged in to vote
1 reply
@otakutyrant
Comment options

Thank you.

Answer selected byotakutyrant
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@otakutyrant@fynnfluegge

[8]ページ先頭

©2009-2025 Movatter.jp