Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dont close the tree window when using the 'preview' maps

  • Loading branch information...
commit e5682d3948b8d11bc020392746fb79b816672240 1 parent b843635
@scrooloose authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 plugin/NERD_tree.vim
View
7 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)
Please sign in to comment.
Something went wrong with that request. Please try again.