Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ctrl-u in vim-mode. bug.
- X-seq: zsh-workers 49551
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: "Taras Halturin" <halturin@xxxxxxxxx>, "Oliver Kiddle" <opk@xxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: ctrl-u in vim-mode. bug.
- Date: Sun, 07 Nov 2021 16:33:24 -0500
- Archived-at: <https://zsh.org/workers/49551>
- In-reply-to: <CAOTqX0AmB=mGYcMozpfYY7WRbr7oHFLLjqeZh7ourt2pEnLSDw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAOTqX0AwFKxzYF=KKfS=V0LQbT9zvitoUc=9xbBZhZb2b+SPzw@mail.gmail.com> <58645-1636211057.471076@1OT-.Fo4B.hS-J> <CAOTqX0AmB=mGYcMozpfYY7WRbr7oHFLLjqeZh7ourt2pEnLSDw@mail.gmail.com>
On Sun, Nov 7, 2021, at 4:15 PM, Taras Halturin wrote:
> Thanks for the reply. Just to make sure if we understand each other.
>
> in vim
> 1. press I for insert mode
> 2. type "asdf"
> 3. ESC for normal mode
> 4. press "shift-a" for append
> 5. press "ctrl-u" <- clears the line till the beginning
That is not the default behavior.
https://vimhelp.org/insert.txt.html#i_CTRL-U
CTRL-U Delete all entered characters before the cursor in the
current line. If there are no newly entered characters and
'backspace' is not empty, delete all characters before the
cursor in the current line. See `i_backspacing` about
joining lines.
Do you have the "backspace" option set?
(If possible, it's good practice to suppress custom settings before
reporting "bugs". [Unless you're discussing a nondefault setting,
of course.] Try your steps in `vim -u NONE`.)
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author