VIM search for pattern into quickfix

前端 未结 2 1391
情书的邮戳
情书的邮戳 2021-02-04 13:51

Basically I need to create a quickfix buffer listing all lines that match a regex. What is the best way?

The global command may not be the best, but I think it should

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-04 14:19

    Use caddexpr:-

    g//caddexpr expand("%") . ":" . line(".") . ":" . getline(".")
    

提交回复
热议问题