vim-flake8 icon indicating copy to clipboard operation
vim-flake8 copied to clipboard

Option to make it so you don't automatically jump to error list

Open synic opened this issue 9 years ago • 2 comments

I've got flake8 checking enabled via autocmd for reading files.

Unfortunately, this makes it so when I open a .py file, flake8 runs, opens error list window, and moves my cursor there.

It'd be nice if there was an option somewhere to prevent this.

synic avatar Aug 18 '15 17:08 synic

There is probably a way to do this in vimscript, but I don't know how. Happy to accept a PR for this though. We could have two invocations: one that focuses, and one that does not (which you can then use in the autocmd when opening files).

nvie avatar Sep 19 '15 08:09 nvie

It has something to do with quickfix stealing focus. I'm trying to solve the same problem : EDIT: The following solved this in ~/.vimrc

autocmd BufWritePost *.py call Flake8()
autocmd BufWritePost *.py wincmd p
autocmd BufWritePost *.py set ft=python

shollingsworth avatar Oct 11 '18 20:10 shollingsworth