From ff0816979cfa267ae15855dddf8564f2c2559281 Mon Sep 17 00:00:00 2001 From: Andrew Radev Date: Tue, 14 Feb 2012 12:38:23 +0200 Subject: [PATCH 1/2] Remove second "edit" from Opener --- plugin/NERD_tree.vim | 1 - 1 file changed, 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index a0d9127..a9d6cca 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2088,7 +2088,6 @@ function! s:Opener._previousWindow() else call s:exec('wincmd p') endif - exec ("edit " . self._path.str({'format': 'Edit'})) catch /^Vim\%((\a\+)\)\=:E37/ call s:putCursorInTreeWin() throw "NERDTree.FileAlreadyOpenAndModifiedError: ". self._path.str() ." is already open and modified." From 71465f79b157d09bc0f7c6033f47695eae8f429d Mon Sep 17 00:00:00 2001 From: Andrew Radev Date: Tue, 14 Feb 2012 12:38:52 +0200 Subject: [PATCH 2/2] Don't output a message on opening a file node --- plugin/NERD_tree.vim | 1 - 1 file changed, 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index a9d6cca..b8b894b 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -1229,7 +1229,6 @@ endfunction "FUNCTION: TreeFileNode.open() {{{3 function! s:TreeFileNode.open(...) - echomsg self.path.str() let opts = a:0 ? a:1 : {} let opener = s:Opener.New(self.path, opts) call opener.open(self)