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

E21: Cannot make changes, 'modifiable' is off #70

Open
parthsharma1996 opened this issue Jun 28, 2018 · 1 comment
Open

E21: Cannot make changes, 'modifiable' is off #70

parthsharma1996 opened this issue Jun 28, 2018 · 1 comment

Comments

@parthsharma1996
Copy link

When I try to go to the error(inconsistency with pep-8) in my code after running vim-flake8, by pressing enter.
E21: Cannot make changes, 'modifiable' is off
How do I resolve this?

@shollingsworth
Copy link

shollingsworth commented Oct 11, 2018

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

2 participants