version 1.3, 1996/09/22 01:18:02 |
version 1.4, 1996/09/24 22:12:57 |
|
|
int check_version = FALSE; /* check .vimrc version number */ |
int check_version = FALSE; /* check .vimrc version number */ |
int argv_idx; /* index in argv[n][] */ |
int argv_idx; /* index in argv[n][] */ |
int invoked_as_ex = FALSE; /* argv[0] is "ex" */ |
int invoked_as_ex = FALSE; /* argv[0] is "ex" */ |
|
int term_inited = FALSE; |
|
|
#if defined(MSDOS) || defined(WIN32) || defined(OS2) |
#if defined(MSDOS) || defined(WIN32) || defined(OS2) |
static struct initmap |
static struct initmap |
|
|
} |
} |
} |
} |
|
|
/* note that we may use mch_windexit() before mch_windinit()! */ |
|
mch_windinit(); /* inits Rows and Columns */ |
|
/* |
|
* Set the default values for the options that use Rows and Columns. |
|
*/ |
|
set_init_2(); |
|
|
|
firstwin->w_height = Rows - 1; |
|
cmdline_row = Rows - 1; |
|
|
|
/* |
/* |
* Process the other command line arguments. |
* Process the other command line arguments. |
* -e[errorfile] quickfix mode |
* -e[errorfile] quickfix mode |
|
|
} |
} |
else /* must be a file name */ |
else /* must be a file name */ |
{ |
{ |
|
if (!term_inited) |
|
{ |
|
#ifdef USE_GUI |
|
if (!gui.starting) |
|
#endif |
|
termcapinit(term); |
|
|
|
/* note that we may use mch_windexit() before mch_windinit()! */ |
|
mch_windinit(); /* inits Rows and Columns */ |
|
/* |
|
* Set the default values for the options that use Rows and |
|
* Columns. |
|
*/ |
|
set_init_2(); |
|
|
|
term_inited = TRUE; |
|
} |
|
|
/* |
/* |
* Skip a single "--" argument, used in front of a file name that |
* Skip a single "--" argument, used in front of a file name that |
* starts with '-'. |
* starts with '-'. |
|
|
} |
} |
} |
} |
} |
} |
|
if (!term_inited) |
|
{ |
|
#ifdef USE_GUI |
|
if (!gui.starting) |
|
#endif |
|
termcapinit(term); |
|
|
|
/* note that we may use mch_windexit() before mch_windinit()! */ |
|
mch_windinit(); /* inits Rows and Columns */ |
|
/* |
|
* Set the default values for the options that use Rows and |
|
* Columns. |
|
*/ |
|
set_init_2(); |
|
|
|
term_inited = TRUE; |
|
} |
|
|
RedrawingDisabled = TRUE; |
RedrawingDisabled = TRUE; |
|
|
/* |
/* |
|
|
curbuf->b_nwindows = 1; /* there is one window */ |
curbuf->b_nwindows = 1; /* there is one window */ |
win_init(curwin); /* init current window */ |
win_init(curwin); /* init current window */ |
init_yank(); /* init yank buffers */ |
init_yank(); /* init yank buffers */ |
if (full_screen) |
if (full_screen && !term_inited) |
termcapinit(term); /* set terminal name and get terminal |
termcapinit(term); /* set terminal name and get terminal |
capabilities */ |
capabilities */ |
screenclear(); /* clear screen (just inits screen structures, |
screenclear(); /* clear screen (just inits screen structures, |