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

E21: Cannot make changes, 'modifiable' is off

Open parthsharma1996 opened this issue 6 years ago • 1 comments

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?

parthsharma1996 avatar Jun 28 '18 10:06 parthsharma1996

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 17:10 shollingsworth