nvie / vim-flake8

Flake8 plugin for Vim
BSD 2-Clause "Simplified" License
1.06k stars 99 forks source link

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

Open parthsharma1996 opened 6 years ago

parthsharma1996 commented 6 years ago

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 commented 6 years ago

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