Search code examples
vimvimacvimnerdtree

vim "modifiable" is off


I am trying to create a new file with NERDTree. I hit the a key to create a new file and I get the message:

E21: Cannot make changes, 'Modifiable' is off

I'm using MacVim with Janus (almost out of the box).


Solution

  • :set ma
    

    which is short for

    :set modifiable
    

    will make a buffer modifiable. And

    :set noma
    

    does the opposite.