aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-02-17 01:18:22 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-03-11 18:32:58 -0400
commit032c20078a617252ff9fc5ac03b4c390a6868a4d (patch)
tree9d4b88f2a3a9458ae44c4855634fd3553ddb7a13
parent1e6c48748888da3811f994da678d755108629584 (diff)
downloadrneovim-032c20078a617252ff9fc5ac03b4c390a6868a4d.tar.gz
rneovim-032c20078a617252ff9fc5ac03b4c390a6868a4d.tar.bz2
rneovim-032c20078a617252ff9fc5ac03b4c390a6868a4d.zip
os_unix_defs && os/unix_defs: Consistently use '~' over '$HOME' #2009
these path names are ridiculous... Based on #889, but also remove some unused #defines
-rw-r--r--src/nvim/os/unix_defs.h2
-rw-r--r--src/nvim/os_unix_defs.h21
2 files changed, 5 insertions, 18 deletions
diff --git a/src/nvim/os/unix_defs.h b/src/nvim/os/unix_defs.h
index e518ac67e5..28ae89ff77 100644
--- a/src/nvim/os/unix_defs.h
+++ b/src/nvim/os/unix_defs.h
@@ -1,7 +1,7 @@
#ifndef NVIM_OS_UNIX_DEFS_H
#define NVIM_OS_UNIX_DEFS_H
-#define TEMP_DIR_NAMES {"$TMPDIR", "/tmp", ".", "$HOME"}
+#define TEMP_DIR_NAMES {"$TMPDIR", "/tmp", ".", "~"}
#define TEMP_FILE_PATH_MAXLEN 256
#endif // NVIM_OS_UNIX_DEFS_H
diff --git a/src/nvim/os_unix_defs.h b/src/nvim/os_unix_defs.h
index 40230c7944..e5ab9fd4f7 100644
--- a/src/nvim/os_unix_defs.h
+++ b/src/nvim/os_unix_defs.h
@@ -101,9 +101,6 @@
#ifndef SYS_VIMRC_FILE
# define SYS_VIMRC_FILE "$VIM/nvimrc"
#endif
-#ifndef SYS_GVIMRC_FILE
-# define SYS_GVIMRC_FILE "$VIM/ngvimrc"
-#endif
#ifndef DFLT_HELPFILE
# define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
#endif
@@ -130,12 +127,12 @@
#endif
#ifndef USR_EXRC_FILE
-# define USR_EXRC_FILE "$HOME/.exrc"
+# define USR_EXRC_FILE "~/.exrc"
#endif
#ifndef USR_VIMRC_FILE
-# define USR_VIMRC_FILE "$HOME/.nvimrc"
+# define USR_VIMRC_FILE "~/.nvimrc"
#endif
@@ -143,18 +140,8 @@
# define USR_VIMRC_FILE2 "~/.nvim/nvimrc"
#endif
-
-#ifndef USR_GVIMRC_FILE
-# define USR_GVIMRC_FILE "$HOME/.ngvimrc"
-#endif
-
-#ifndef USR_GVIMRC_FILE2
-# define USR_GVIMRC_FILE2 "~/.nvim/ngvimrc"
-#endif
-
-
# ifndef VIMINFO_FILE
-# define VIMINFO_FILE "$HOME/.nviminfo"
+# define VIMINFO_FILE "~/.nviminfo"
# endif
#ifndef EXRC_FILE
@@ -179,7 +166,7 @@
#endif
#ifndef DFLT_VDIR
-# define DFLT_VDIR "$HOME/.nvim/view" /* default for 'viewdir' */
+# define DFLT_VDIR "~/.nvim/view" // default for 'viewdir'
#endif
#define DFLT_ERRORFILE "errors.err"