Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: delete character under the cursor with `dl' in 'vicmd' keymap
- X-seq: zsh-users 15642
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: delete character under the cursor with `dl' in 'vicmd' keymap
- Date: Thu, 09 Dec 2010 01:10:15 -0800
- In-reply-to: <AANLkTim7SO8_oiK5=MHGA_Md6AmGWB-kf070LpFF9kmq@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <AANLkTim7SO8_oiK5=MHGA_Md6AmGWB-kf070LpFF9kmq@xxxxxxxxxxxxxx>
On Dec 9, 1:18pm, first name wrote:
} Subject: delete character under the cursor with `dl' in 'vicmd' keymap
}
} while in vim `dl' will delete the character under the curosr,
} zsh in vicmd mapping will delete only left to the cursor,
} how do i change it?
Hmm. I just did:
schaefer<547> bindkey -v
followed by ESC to enter vicmd mode, k to recall the line, hhhhhh to
place the cursor over the "d", and then dl to delete, and I get:
schaefer<548> binkey -v
which certainly appears to have deleted the character under the
cursor. So zsh is attempting to do the right thing.
The only place I can get it to fail is on the "v". When the motion
for vi-forward-char can't be performed because we're at the end of
the buffer, the deletion can't be performed either.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author