문제

I just recently installed Pyflakes Vim plugin. It works very fine and is very helpful. Unfortunately it uses the error list in case there is an error. So if I make a search-in-files using Vimgrep or Grep, then after using :cnext to show the next error, the error list will most probably be replaced with the list of errors generated by Pyflakes automatically.

Any idea how this can be solved?

도움이 되었습니까?

해결책

You could use :lvimgrep (abbreviated :lv) to use the location list instead of the quickfix list. Both work the same way, but the c* commands are replaced with l*. See :help quickfix.txt for more details

다른 팁

As mentioned in the accepted answer to this related question PyFlakes has an option to disable its use of the quickfix list.

let g:pyflakes_use_quickfix = 0

You can either have this in your vimrc to always have it off, or you can turn it on and off by using the let statement as an ex command.

To turn on PyFlakes' use of the quickfix list again do:

let g:pyflakes_use_quickfix = 1
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top