xref: /vim-8.2.3635/src/os_dos.h (revision 9bf703d4)
1 /* vi:set ts=8 sts=4 sw=4 noet:
2  *
3  * VIM - Vi IMproved	by Bram Moolenaar
4  *
5  * Do ":help uganda"  in Vim to read copying and usage conditions.
6  * Do ":help credits" in Vim to see a list of people who contributed.
7  */
8 
9 /*
10  * Common MS-DOS and Win32 (Windows NT and Windows 95) defines.
11  *
12  * Names for the EXRC, HELP and temporary files.
13  * Some of these may have been defined in the makefile or feature.h.
14  */
15 
16 #ifndef SYS_VIMRC_FILE
17 # define SYS_VIMRC_FILE		"$VIM\\vimrc"
18 #endif
19 #ifndef USR_VIMRC_FILE
20 # define USR_VIMRC_FILE		"$HOME\\_vimrc"
21 #endif
22 #ifndef USR_VIMRC_FILE2
23 # define USR_VIMRC_FILE2	"$HOME\\vimfiles\\vimrc"
24 #endif
25 #ifndef USR_VIMRC_FILE3
26 # define USR_VIMRC_FILE3	"$VIM\\_vimrc"
27 #endif
28 #ifndef VIM_DEFAULTS_FILE
29 # define VIM_DEFAULTS_FILE	"$VIMRUNTIME\\defaults.vim"
30 #endif
31 #ifndef EVIM_FILE
32 # define EVIM_FILE		"$VIMRUNTIME\\evim.vim"
33 #endif
34 
35 #ifndef USR_EXRC_FILE
36 # define USR_EXRC_FILE		"$HOME\\_exrc"
37 #endif
38 #ifndef USR_EXRC_FILE2
39 # define USR_EXRC_FILE2		"$VIM\\_exrc"
40 #endif
41 
42 #ifdef FEAT_GUI
43 # ifndef SYS_GVIMRC_FILE
44 #  define SYS_GVIMRC_FILE	"$VIM\\gvimrc"
45 # endif
46 # ifndef USR_GVIMRC_FILE
47 #  define USR_GVIMRC_FILE	"$HOME\\_gvimrc"
48 # endif
49 # ifndef USR_GVIMRC_FILE2
50 #  define USR_GVIMRC_FILE2	"$HOME\\vimfiles\\gvimrc"
51 # endif
52 # ifndef USR_GVIMRC_FILE3
53 #  define USR_GVIMRC_FILE3	"$VIM\\_gvimrc"
54 # endif
55 # ifndef SYS_MENU_FILE
56 #  define SYS_MENU_FILE		"$VIMRUNTIME\\menu.vim"
57 # endif
58 #endif
59 
60 #ifndef SYS_OPTWIN_FILE
61 # define SYS_OPTWIN_FILE	"$VIMRUNTIME\\optwin.vim"
62 #endif
63 
64 #ifdef FEAT_VIMINFO
65 # ifndef VIMINFO_FILE
66 #  define VIMINFO_FILE		"$HOME\\_viminfo"
67 # endif
68 # ifndef VIMINFO_FILE2
69 #  define VIMINFO_FILE2		"$VIM\\_viminfo"
70 # endif
71 #endif
72 
73 #ifndef VIMRC_FILE
74 # define VIMRC_FILE	"_vimrc"
75 #endif
76 
77 #ifndef EXRC_FILE
78 # define EXRC_FILE	"_exrc"
79 #endif
80 
81 #ifdef FEAT_GUI
82 # ifndef GVIMRC_FILE
83 #  define GVIMRC_FILE	"_gvimrc"
84 # endif
85 #endif
86 
87 #ifndef DFLT_HELPFILE
88 # define DFLT_HELPFILE	"$VIMRUNTIME\\doc\\help.txt"
89 #endif
90 
91 #ifndef FILETYPE_FILE
92 # define FILETYPE_FILE	"filetype.vim"
93 #endif
94 #ifndef FTPLUGIN_FILE
95 # define FTPLUGIN_FILE	"ftplugin.vim"
96 #endif
97 #ifndef INDENT_FILE
98 # define INDENT_FILE	"indent.vim"
99 #endif
100 #ifndef FTOFF_FILE
101 # define FTOFF_FILE	"ftoff.vim"
102 #endif
103 #ifndef FTPLUGOF_FILE
104 # define FTPLUGOF_FILE	"ftplugof.vim"
105 #endif
106 #ifndef INDOFF_FILE
107 # define INDOFF_FILE	"indoff.vim"
108 #endif
109 
110 #ifndef SYNTAX_FNAME
111 # define SYNTAX_FNAME	"$VIMRUNTIME\\syntax\\%s.vim"
112 #endif
113 
114 #ifndef DFLT_BDIR
115 # define DFLT_BDIR	".,$TEMP,c:\\tmp,c:\\temp" // default for 'backupdir'
116 #endif
117 
118 #ifndef DFLT_VDIR
119 # define DFLT_VDIR	"$VIM/vimfiles/view"	// default for 'viewdir'
120 #endif
121 
122 #ifndef DFLT_DIR
123 # define DFLT_DIR	".,$TEMP,c:\\tmp,c:\\temp" // default for 'directory'
124 #endif
125 
126 #define DFLT_ERRORFILE		"errors.err"
127 #define DFLT_RUNTIMEPATH	"$HOME/vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/vimfiles/after"
128 #define CLEAN_RUNTIMEPATH	"$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after"
129 
130 #define CASE_INSENSITIVE_FILENAME   // ignore case when comparing file names
131 #define SPACE_IN_FILENAME
132 #define BACKSLASH_IN_FILENAME
133 #define USE_CRNL		// lines end in CR-NL instead of NL
134 #define HAVE_DUP		// have dup()
135 #define HAVE_ST_MODE		// have stat.st_mode
136