commit e5682d3948b8d11bc020392746fb79b816672240
parent b843635a502193272bf60584ada39235847f5cdb
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date: Wed, 11 Jan 2012 19:55:27 +0000
dont close the tree window when using the 'preview' maps
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git 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)