Merge pull request #550 from wincent/keepalt

Make window creation command configurable
This commit is contained in:
Martin Grenfell
2016-04-26 09:05:57 +01:00
2 changed files with 16 additions and 1 deletions

View File

@@ -96,7 +96,8 @@ function! s:Creator.createWindowTree(dir)
"we need a unique name for each window tree buffer to ensure they are
"all independent
exec "silent edit " . self._nextBufferName()
let prefix = get(g:, "NERDTreeCreatePrefix", "silent")
exec prefix . " edit " . self._nextBufferName()
call self._createNERDTree(path, "window")
let b:NERDTree._previousBuf = bufnr(previousBuf)