10 events
when toggle format what by license comment
Aug 17 '19 at 11:17 comment added filbranden @Steve Don't worry, Vim has so many commands that it's often hard to remember or find exactly what we're looking for. That's why having Vi&Vim.SE is so awesome. I just turned this into an answer, since it seems to have solved the problem for you.
Aug 17 '19 at 11:15 answer filbranden timeline score: 1
Aug 16 '19 at 0:56 answer D. Ben Knoble timeline score: 2
Aug 16 '19 at 0:09 comment added Steve /doh I'd been using :g to get a list of the error and just forgot ? did what I want
Aug 15 '19 at 6:53 comment added Christian Brabandt Use ? to search backwards or reverse the file first :%!tac
Aug 15 '19 at 5:12 comment added filbranden @Steve Are you just searching? If so, why not ?pattern, which will search backwards? Why are you using :g? To search for those lines? Using / and ? are the search operators, and the latter searches backwards... Are you using the pattern to look for the lines with the error? Perhaps some form of folding might help you, folding all lines that are not the ones you care about... But it's still hard to figure out exactly what you want. Can you give more specific examples? Perhaps a snippet of a file and the operation you're trying to accomplish there? Please edit the question.
Aug 15 '19 at 4:59 comment added Steve Hi @filbranden I have a very large file with multiple **error lines per physical error. When there is a defect impacting the report I often miss the trees for the forest. Reversing the search is just a way of filtering out most of the errors at the top of the file and ensuring I don't miss some. :g/pattern/m0 works but I was hoping to use a reverse range
Aug 15 '19 at 4:53 comment added filbranden @Steve, I think you could be more specific about why you need to process the file from the bottom up. Right now, it's hard to tell what exactly is your motivation...
Aug 15 '19 at 3:48 comment added D. Ben Knoble Do you need to act on the lines? Or just search?
Aug 15 '19 at 3:12 history asked Steve CC BY-SA 4.0