vim-flake8
vim-flake8 copied to clipboard
Option to make it so you don't automatically jump to error list
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.
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).
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