Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
synic opened this issue Aug 18, 2015 · 2 comments
Open

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

synic opened this issue Aug 18, 2015 · 2 comments

Comments

@synic
Copy link

synic commented Aug 18, 2015

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.

@nvie
Copy link
Owner

nvie commented Sep 19, 2015

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).

@shollingsworth
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants