From 2c38519733006e29444bf909072b22db6dbd55fd Mon Sep 17 00:00:00 2001 From: "Phil Runninger (mac)" Date: Sun, 6 May 2018 11:34:24 -0400 Subject: [PATCH] Make the NERDTree buffer writable when rendering it. --- lib/nerdtree/ui.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nerdtree/ui.vim b/lib/nerdtree/ui.vim index 196d745..68a72b6 100644 --- a/lib/nerdtree/ui.vim +++ b/lib/nerdtree/ui.vim @@ -390,7 +390,7 @@ endfunction " FUNCTION: s:UI.render() {{{1 function! s:UI.render() - setlocal modifiable + setlocal noreadonly modifiable " remember the top line of the buffer and the current line so we can " restore the view exactly how it was @@ -438,7 +438,7 @@ function! s:UI.render() call cursor(curLine, curCol) let &scrolloff = old_scrolloff - setlocal nomodifiable + setlocal readonly nomodifiable endfunction