vim “modifiable” is off

后端 未结 7 1151
悲&欢浪女
悲&欢浪女 2021-01-29 23:08

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 of

7条回答
  •  旧巷少年郎
    2021-01-29 23:39

    If you want to happen a file in NERDTree, you need to hit "m" (for menu) then "a". Simply entering "a" in NERDTree buffer will be interpreted as "modify NERDTree buffer". Adding :ma will make NERDTree buffer modifiable, but this wont create new files for you, it will lead to inconsistent info between what NERDTree display and your actual file hierarchy.

提交回复
热议问题