Login
You're viewing the functional.cafe public feed.
  • Nov 4, 2026, 2:44 PM

    Well, I was in for a treat.

    No more macro looping over buffers with `:h wrapscan`.

    By default, (n)vim loop over the buffer when searching for the next occurrence.
    `:set wrapscan!` disable this behavior.

    Meaning, if you have a macro relying on a search you want to run 'til the end of the buffer then stop, you can know go `9999@@` and it'll stop.

    #TIL #Vim #NeoVim #NVim

    💬 0🔄 0⭐ 1