vim "modifiable" is off

wesbos picture wesbos · Apr 21, 2011 · Viewed 87.5k times · Source

Trying to create a new file with nerd tree. 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 and Janus (almost out of the box)

Answer

Adam Soltys picture Adam Soltys · Mar 14, 2012
:set ma

which is short for

:set modifiable

will make a buffer modifiable. And

:set noma

does the opposite.