From 6334e991929c143db3d6abfe23a345cacfc9ff1a Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 8 Jun 2008 21:02:54 +1200 Subject: [PATCH] be silent when opening files --- plugin/NERD_tree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index e05c39a..2eafc8f 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2033,7 +2033,7 @@ function! s:OpenFileNode(treenode) else try wincmd p - exec ("edit " . a:treenode.path.StrForEditCmd()) + silent exec ("edit " . a:treenode.path.StrForEditCmd()) catch /^Vim\%((\a\+)\)\=:E37/ call s:PutCursorInTreeWin() call s:Echo("Cannot open file, it is already open and modified")