瀏覽代碼

fix error when vim is in read-only mode

Benoit Pierre 4 年之前
父節點
當前提交
2d9df65b51
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      plugin/bufexplorer.vim

+ 1 - 0
plugin/bufexplorer.vim

@@ -475,6 +475,7 @@ function! s:DisplayBufferList()
     " the buffer using CTRL-^.
     setlocal buftype=nofile
     setlocal modifiable
+    setlocal noreadonly
     setlocal noswapfile
     setlocal nowrap