Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [zsh bug report] vi-change-whole-line does not kill whole line in some cases
- X-seq: zsh-workers 43859
- From: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [zsh bug report] vi-change-whole-line does not kill whole line in some cases
- Date: Mon, 3 Dec 2018 17:11:47 +0900
- In-reply-to: <CAOnkW9ZFz4zxOhqu=udQsv3OS_pEq7SN2QNH4AH59Vsvnq1x5w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAOnkW9ZFz4zxOhqu=udQsv3OS_pEq7SN2QNH4AH59Vsvnq1x5w@mail.gmail.com>
> 2018/12/03 3:15、Kuba <lxkuba@xxxxx>のメール:
>
> ## Expected result:
> Kill the current line and enter insert mode.
>
> ## Actual result:
> The line is killed but the cursor is positioned one place to the right making the line not empty (line contains single space)
I think this is intensional.
Blanks at the start of lines are retained to keep the indentation;
this is the behavior compatible with vim editor with autoindent ON.
If you want a behavior of pure vi (or vim with autoindent OFF),
you may try
bindkey -a -s S cc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author