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



> 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