I've got a list of stuff. Fairly often I want to search for things like ^Wfoo, ^Wbar, ^Wblatz. In other words, they all start with ^W.
Is there a way in VIM that I can put it into a mode where when I use / to search, it will prepend ^W in front of my query? It needs to be a switchable mode, I do this kind of search in batches, then I want search to work as normal.
Yeah, I could do it in a macro. But then I have to find an unused key and remember how to make a macro.
Lazy minds want to know.
Is there a way in VIM that I can put it into a mode where when I use / to search, it will prepend ^W in front of my query? It needs to be a switchable mode, I do this kind of search in batches, then I want search to work as normal.
Yeah, I could do it in a macro. But then I have to find an unused key and remember how to make a macro.
Lazy minds want to know.