zsh-workers
 help / color / mirror / code / Atom feed
From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
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	[thread overview]
Message-ID: <B3BD5A8B-D3F4-4F6B-95E4-9D018ED70214@kba.biglobe.ne.jp> (raw)
In-Reply-To: <CAOnkW9ZFz4zxOhqu=udQsv3OS_pEq7SN2QNH4AH59Vsvnq1x5w@mail.gmail.com>


> 2018/12/03 3:15、Kuba <lxkuba@wp.pl>のメール:
> 
> ## 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


      reply	other threads:[~2018-12-03  8:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-02 18:15 Kuba
2018-12-03  8:11 ` Jun T [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B3BD5A8B-D3F4-4F6B-95E4-9D018ED70214@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).