Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vi bindings
- X-seq: zsh-users 13631
- From: "Matt Wozniski" <godlygeek@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: vi bindings
- Date: Sat, 3 Jan 2009 20:56:15 -0500
- Cc: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>, "Mikael Magnusson" <mikachu@xxxxxxxxx>, "Ludvig Ericson" <ludvig.ericson@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Z2Y4fOzX7zwkwwy8Dok+lML7dcNB/eZfyekCNSPccyw=; b=khUoYIWE9p23N2DpwTem5Xtb02aYXQhGr+sDXIp1hcPYKOxeHptHZMyYYFY77llgxm e5T7CvhaaqzQnpZp0aiPYe5LtbV5IrcesIHv61+8ptHvPIkFSKBA27S5kdanHotjB8O2 EItkcZGmVrKydUnxHQUjsE9UWDxRkmJNh1LUc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=QTQEfORVIGMo4AZKmMWXY4leXtxZzy7bdw5Fi7x9zboPi4FZ8ukqdtpUneGSi0Bgg6 +yIYsfUNSWIs6IxxrkDzBtoKH2rDKxv6Kxd5/tJuJmkKjTUjivxRxLaBi+dXvxMgO5wa SXDBT1GWWKbqMhkkzyP3Yoii1mg060/RBkWI4=
- In-reply-to: <2d460de70901031743sc74f262q4959277bb28bbb52@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <4B6EFB14-7711-41BA-BA22-C69D849F167D@xxxxxxxxx> <2d460de70901031709o5296cacby1cb14ec04c4f71a3@xxxxxxxxxxxxxx> <237967ef0901031717t4fb16db3k51f88e92369f607b@xxxxxxxxxxxxxx> <2d460de70901031743sc74f262q4959277bb28bbb52@xxxxxxxxxxxxxx>
On Sat, Jan 3, 2009 at 8:43 PM, Richard Hartmann wrote:
> On Sun, Jan 4, 2009 at 02:17, Mikael Magnusson wrote:
>
>> Vim and Vi do not differ wrt to backspacing in the default
>> configuration. (try vim -u /dev/null).
>
> In compatible mode, backspace in insert mode moves one
> char to the left. In nocompatible mode it actually deletes the
> char on the left of the cursor. Both in insert mode and with
> standard settings.
In both compatible and nocompatible mode, backspace in insert mode
deletes the character before the cursor, BUT... in compatible mode,
it will not delete past the point where insertion started, or over a
line break, or (and this one doesn't really apply to zsh) over
automatically inserted indentation. With both "vim -u NONE -C" and
"vim -u NONE -N", ihell<Esc>ao<BS> leaves "hell", but in compatible
mode ihello<Esc>a<BS> rings the bell and leaves "hello", and in
nocompatible mode it leaves just "hell".
In normal mode, <BS> moves one character left in each, but in
compatible mode it will not move across line breaks, and in
nocompatible mode it will.
All that being said, the OP will likely find that to make the vi
keymap behave as he wants, he can override some of the keys with the
emacs equivalents and get vimmier behavior.
~Matt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author