arnaud-lb / vim-php-namespace

PHP namespace support for VIM. Types "use" statements for you
256 stars 29 forks source link

Cannot make changes, 'modifiable' if off: put y #2

Closed odolbeau closed 10 years ago

odolbeau commented 12 years ago

Hello,

Everytime I try to call the command PhpInsertUse, I got the following error::

Error detected while processing function PhpInsertUse: line 51: Vim(put):E21: Cannot make changes, 'modifiable' is off: put y

I use VIM 7.3. No file permissions problem.

Do you have any ideas?

Thanks! :)

arnaud-lb commented 12 years ago

Hello,

It looks like vim put the buffer in read only mode, but I don't have any idea why.

Does it happen every time, on every files ?

odolbeau commented 12 years ago

Yep, everytime... :/

Except when I delete all ns / use statetement and call PhpInsertUse command (on the current class name). In this case, I have the following error:

Error detected while processing function PhpInsertUse: line 58: E20: Mark not set

And then, buffer is closed!

arnaud-lb commented 10 years ago

Should have been fixed