 +		return;
 +	}
 +
-+	//app_info appInfo;
-+	//status_t status = gui.vimApp->GetAppInfo(&appInfo);
-+
 +	BPath path;
 +	status_t status = find_directory(B_BEOS_SERVERS_DIRECTORY, &path);
 +	if(status != B_OK) {

diff -Naur vim73/src/gui_beos.cc vim73.haiku/src/gui_beos.cc
--- vim73/src/gui_beos.cc	1970-01-01 00:00:00.000000000 +0000
+++ vim73.haiku/src/gui_beos.cc	2010-08-20 23:43:35.727711744 +0000
@@ -0,0 +1,4590 @@
+/* vi:set ts=8 sts=4 sw=4:
+ *
+ * VIM - Vi IMproved			by Bram Moolenaar

+	// try vector icon first?
+	iconData = (const uint8*)resources.LoadResource(B_VECTOR_ICON_TYPE, name, &size);
+	if(iconData != NULL && BIconUtils::GetVectorIcon(iconData, size, fIconBitmap) == B_OK) {
+		return;
+	}
+#endif
