From eef90bf3200bcacfd099ab207e8996c8d7a7a490 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Thu, 12 Mar 2009 09:40:16 +1300 Subject: [PATCH] fix lots of no-name buffers being created Previously every time the tree window was created a new [no-name] buffer was being created (visible with :ls!). Avoid this by creating the window with split, not new --- plugin/NERD_tree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 097d90d..742c897 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2355,7 +2355,7 @@ function! s:createTreeWin() "create the nerd tree window let splitLocation = g:NERDTreeWinPos ==# "left" ? "topleft " : "botright " let splitSize = g:NERDTreeWinSize - silent! exec splitLocation . 'vertical ' . splitSize . ' new' + silent! exec splitLocation . 'vertical ' . splitSize . ' split' if !exists('t:NERDTreeBufName') let t:NERDTreeBufName = s:nextBufferName()