Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Apr 1999 20:19:23 -0400
From:      Dave Chapeskie <dchapes@ddm.on.ca>
To:        SDS <bsd-stable@boneyard.lawrence.ks.us>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: vi dumping the core...
Message-ID:  <19990424201923.50629@ddm.on.ca>
In-Reply-To: <Pine.BSF.4.10.9904241637190.9776-100000@madeline.boneyard.lawrence.ks.us>; from SDS on Sat, Apr 24, 1999 at 05:28:33PM -0500
References:  <Pine.BSF.4.10.9904241637190.9776-100000@madeline.boneyard.lawrence.ks.us>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 24, 1999 at 05:28:33PM -0500, SDS wrote:
> vi
> <enter the editor>
> ^\ (switch to ex mode)
> hit ^\ again
> 
> *plop*

The best solution is to use "Q" to enter ex mode (or just start the
editor as "ex").

The reason for the core dump is that '^\' is the default QUIT character
(look at the output of "stty -a").  The QUIT character causes SIGQUIT to
be sent and the default action for SIGQUIT is to dump core and exit.

In "vi" mode the terminal is in raw mode which means that "special"
characters are not interpreted as such.  In "ex" mode however the
terminal is in canonical mode and all the special characters are
interpreted according to the stty settings.

If you never use the QUIT character you could also run the following:

    stty quit undef

to disable the special meaning of ^\.  (You could put this command in
your .login file).  You should also read the stty man page.

-- 
Dave Chapeskie
<dchapes@ddm.on.ca>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990424201923.50629>