From 30bfb6e6b7ea150333ad8e48c08f5ace64a1594e Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 22 Jun 2008 12:42:52 +1200 Subject: [PATCH] Revert "be silent when opening files" This reverts commit 6334e991929c143db3d6abfe23a345cacfc9ff1a. Opening files silently causes vim to hang if the file is already open by another vim instance (it tries to print out the swap file message/options but it cant). --- 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 8b3ca3c..f515d30 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2123,7 +2123,7 @@ function! s:OpenFileNode(treenode) else try wincmd p - silent exec ("edit " . a:treenode.path.StrForEditCmd()) + 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")