:let @/ = ""@/ prints "foo" again, and pressing n jumps to the next match; clear from step 4 is gone.
After :let @/ = "" the last search pattern should stay cleared after restarting, just like within the session.
9.2.0782
Operating system: NixOS
Terminal: ghostty
Value of $TERM: xterm-256color
Shell: zsh
pattern.txt says :let @/ = "" leaves the pattern ["really cleared, like when starting Vim"](https://github.com/vim/vim/blob/v9.2.0653/runtime/doc/pattern.txt#L273-L276), but viminfo puts it back on the next start. If persisting the clear isn't wanted maybe clarify in docs?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()