Zum Hauptinhalt springen
Chris’ wirre Gedankenwelt
  1. posts/

šŸ‘©ā€šŸŽ“ TIL More About Vim Registers

You never stop learning new things. Just to set the scene. I’m a diehard vi user for 23+ years. Starting with nvi (because of because), ending up in using neovim these days. At least, I tell myself to be relatively fluent in navigating around and getting things done. However, there are still tricks to learn every day.

This time, it it about :h registers. I ended up there by :Telescope registers, just because I wandered around Telescope to learn what it provides, that I’m currently missing out.

I regularly use named registers ("a to "z) for copying stuff around, and the "/ registers. I also knew about the “delete history” in the numbered registers. Totally new to me is "0, which holds the last yanked content. So far, if I yanked something, and afterwards deleted a line. In my head, the yanked bits were lost. I went back, yanked it into a named registers, and continued. Now, I only need to paste "0p šŸ§šā€ā™€ļø