即使输入,也无法退出vim :q!
。我得到错误
E37: No write since last change (add ! to override)
E162: No write since last change for buffer...
我认为缓冲区是NetrwTreeListing只读的。
即使输入,也无法退出vim :q!
。我得到错误
E37: No write since last change (add ! to override)
E162: No write since last change for buffer...
我认为缓冲区是NetrwTreeListing只读的。
Answers:
为了永久解决netrw的这种麻烦,我将其添加到了我的.vimrc
:
" Per default, netrw leaves unmodified buffers open. This autocommand
" deletes netrw's buffer once it's hidden (using ':q', for example)
autocmd FileType netrw setl bufhidden=delete
从蒂姆教皇。