commit eef90bf3200bcacfd099ab207e8996c8d7a7a490
parent 3796a8799a4805a296cb734bf4215ef06e27cf27
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Thu, 12 Mar 2009 09:40:16 +1300
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
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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()