From dc349a072ae4abc4747b23d7ab4085c5a1afe589 Mon Sep 17 00:00:00 2001 From: "Phil Runninger (mac)" Date: Tue, 6 Mar 2018 08:41:06 -0500 Subject: [PATCH 1/2] Use a better check for existence of the NERDTree buffer. If the user wipes out or deletes (:bw or :bd) the NERDTree buffer, there is still a tab variable that hangs onto the name of that now-missing buffer. Checking only that variable is not enough to decide whether to create a new NERDTree or use the existing one. Fortunately, there already is a function with a more complete check: ExistsForTab() --- lib/nerdtree/creator.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nerdtree/creator.vim b/lib/nerdtree/creator.vim index 047939f..fb5adfd 100644 --- a/lib/nerdtree/creator.vim +++ b/lib/nerdtree/creator.vim @@ -185,7 +185,7 @@ function! s:Creator._createTreeWin() let splitLocation = g:NERDTreeWinPos ==# "left" ? "topleft " : "botright " let splitSize = g:NERDTreeWinSize - if !exists('t:NERDTreeBufName') + if !g:NERDTree.ExistsForTab() let t:NERDTreeBufName = self._nextBufferName() silent! exec splitLocation . 'vertical ' . splitSize . ' new' silent! exec "edit " . t:NERDTreeBufName From d6fe203dece8bef77bca24c117adca3d612b66c1 Mon Sep 17 00:00:00 2001 From: "Phil Runninger (mac)" Date: Tue, 6 Mar 2018 09:23:11 -0500 Subject: [PATCH 2/2] Update issue template, making it a little cleaner. --- .github/ISSUE_TEMPLATE.md | 47 +++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 69aa7d9..998330d 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,37 +1,30 @@ -_To assist in resolving your issue, provide as much information as possible, in place of the ellipses (`…`) below._ + ---- -**Environment:** _Describe your Vim/NERDTree setup._ +### Environment + ->* Operating System: … ->* Vim version `:version`: … ->* NERDTree version `git rev-parse --short HEAD`: … ->* NERDTree settings applied in your vimrc, if any: -> -> ``` -> … -> ``` +* Operating System: +* Vim version `:version`: +* NERDTree version `git rev-parse --short HEAD`: +* NERDTree settings applied in your vimrc, if any: + ```vim + ``` -**Process:** _List the steps that will recreate the issue._ +### Process + ->1. … +1. -**Current Result:** _Describe what you you currently experience from this process._ +### Current Result + ->… +### Expected Result + -**Expected Result:** _Describe what you would expect to have resulted from this process._ +## Optional ->… +### Screenshot(s) ---- -**Optional** - -**Screenshot(s):** - ->… - -**Possible Fix:** _(Have you poked around in the code?)_ - ->… +### Possible Fix +