patch 8.1.0846: not easy to recognize the system Vim runs on
Problem: Not easy to recognize the system Vim runs on.
Solution: Add more items to the features list. (Ozaki Kiichi, closes #3855)
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 874e3a6..c7ba6f3 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -6118,6 +6118,15 @@
#ifdef __BEOS__
"beos",
#endif
+#if defined(BSD) && !defined(MACOS_X)
+ "bsd",
+#endif
+#ifdef hpux
+ "hpux",
+#endif
+#ifdef __linux__
+ "linux",
+#endif
#ifdef MACOS_X
"mac", /* Mac OS X (and, once, Mac OS Classic) */
"osx", /* Mac OS X */
@@ -6129,6 +6138,11 @@
#ifdef __QNX__
"qnx",
#endif
+#ifdef SUN_SYSTEM
+ "sun",
+#else
+ "moon",
+#endif
#ifdef UNIX
"unix",
#endif
@@ -6158,7 +6172,7 @@
#endif
"autocmd",
#ifdef FEAT_AUTOCHDIR
- "autochdir",
+ "autochdir",
#endif
#ifdef FEAT_AUTOSERVERNAME
"autoservername",