vim quickfix avoid buffer change

后端 未结 2 1867
抹茶落季
抹茶落季 2021-01-13 07:57

I\'m using vimgrep with cw to open the search results in the quickfix buffer. Every time I select a line in the quickFix list the curs

2条回答
  •  我在风中等你
    2021-01-13 08:20

    You can use :cnext and :cprevious combined with a p (focus on previous window).

    To bind them to e.g. cn and cp, you could do:

    nnoremap  cn :cnextp
    nnoremap  cp :cpreviousp
    

提交回复
热议问题