From e5682d3948b8d11bc020392746fb79b816672240 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Wed, 11 Jan 2012 19:55:27 +0000 Subject: [PATCH] dont close the tree window when using the 'preview' maps --- plugin/NERD_tree.vim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 4932c11..685f9d1 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -4211,20 +4211,19 @@ endfunction "FUNCTION: s:previewNodeCurrent(node) {{{2 function! s:previewNodeCurrent(node) - call a:node.open({'stay': 1, 'where': 'p'}) + call a:node.open({'stay': 1, 'where': 'p', 'keepopen': 1}) endfunction "FUNCTION: s:previewNodeHSplit(node) {{{2 function! s:previewNodeHSplit(node) - call a:node.open({'stay': 1, 'where': 'h'}) + call a:node.open({'stay': 1, 'where': 'h', 'keepopen': 1}) endfunction "FUNCTION: s:previewNodeVSplit(node) {{{2 function! s:previewNodeVSplit(node) - call a:node.open({'stay': 1, 'where': 'v'}) + call a:node.open({'stay': 1, 'where': 'v', 'keepopen': 1}) endfunction - " FUNCTION: s:revealBookmark(name) {{{2 " put the cursor on the node associate with the given name function! s:revealBookmark(name)