From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25764 invoked from network); 7 Nov 2021 21:41:39 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 Nov 2021 21:41:39 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1636321299; b=XrV2sUL2XYuCXJi72kk7rN5g1YlrKIkgVTChNtwtSbm0xrURLSYVLVtDbYylkKIVJnVyeS+ppZ SS+qjr6KrIMz6U2qtuB4NA5x2AtKJPwSWYBbkteOG2HmgRJ39tA6K00tKXbfQ2h8Y6jU1zVmB/ eo+SfCZgyK8myJ7O2K3HEs/9Mxuh3BTw84seKtYWjkCwcmjxLUD/sIbCjg8usf3JIzh3k9xF1u oY5NEVRU5Yq8bAevckgZ/xAAG+1EOxwlep23C1mBjAy+Gc/Z8EV1MeNj80PKc1/oPKUiJ9pekH wnxsB+jTo0WoRWHidGsg0i7S/gk7wqPF5gjfDvHNWB5FFA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f53.google.com) smtp.remote-ip=209.85.167.53; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1636321299; bh=NsPMLWJXFn6UA7vRGnz+CbzvwzKxUsTZJ9Fd6QcmfGM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=nLsZeJ7CpBy/b23SpGkvk0mbOM4lOCiECbSQGu1JN33LzHdZpOH/t1ThgwOopdK7skuoEUGta1 lHpBijPTrCqfNrG3eXgqidGubpsD2nkW6LUQiSbAbSD6WttVVNqplZO26le95GxKwxmeYjsZDV jRFsDtOIChA+0flELS+zzzjTvh1jh/y32czhTbuzC3y8bZaITMldfVhYLS/nhAixjgQn/MaRiG 1S/UEP7AtDIaWKe9VgHLfNPZl6CJFjSIUzTnOBSDh9JR8opbgadrMnSjM5oK0UbFzFToFOyz7o 5jqPTdhn8wf6tlYg9iCWjYjbNC7WfZAaTuz5sF604v27qA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ySPP/A++dTn3qLYeRsvCojx1dnrbeazugmCY8taGoAA=; b=Uk6FNiGuQODC1wPzuFAHJAYDxQ pkTFnx43qVpHa3EdS2zICou71c1GtfCvvsXuzGAAVYW6TWc7EEEvuVGKit8NY5oRXm/xaV1lJhNqZ c+J++Brx4FKNgvw9ssZuXBuQwsIxmYoGvfH2Z3fAOL67TdJzGUN677UdP5OxgUqaGxx8ubDLCYZu5 BHcplCWNJPjZrNMb6PfOyBFTyh5dtmwj6O6t+h8wcpCT0vMlvKhiYr3RXvqd8t2hJxuity9xiIifd LL73jY8Z6i4PjaET1M2/usihHNfL+5UeolU4ALUsf1RqGzazzR5A24RRsJpmSzEp7w8czh25ZNdBQ D8jAoVQg==; Received: from authenticated user by zero.zsh.org with local id 1mjpv1-0007uC-6t; Sun, 07 Nov 2021 21:41:39 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f53.google.com) smtp.remote-ip=209.85.167.53; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f53.google.com ([209.85.167.53]:42779) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mjps9-0007NH-91; Sun, 07 Nov 2021 21:38:41 +0000 Received: by mail-lf1-f53.google.com with SMTP id bi35so31795465lfb.9; Sun, 07 Nov 2021 13:38:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ySPP/A++dTn3qLYeRsvCojx1dnrbeazugmCY8taGoAA=; b=nebdC3eg9+YBEuZHS7VFHoauDIqoYAzawfItH7olvTJm4qjQkS8t1/Mi/fS5Xc2opP FdSDq3GDHPluiFdUotzWQclIdONRjmCgrH4j0yO727GQStZhrUPg9LyCfEv9YBaAJMr2 vE3nQQnZis1exjIiYfanYHfcBt3EL7sVGH8kyRGYZnRtqR2mUbxdWE/zzDUnxftl5IRQ tgy0X/2OCaBbFNsaXdyYiBoTMK1WlOAJOCZKOrdY/0lZMcvlMjD54Ju2fptuSv5FTfX2 WaqEjUtzX5UwhvRM0FpNz45EuiWK3Fns33boRwKaLhM4PCzkwkbw3e327pDHEsN6W0wd RqVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ySPP/A++dTn3qLYeRsvCojx1dnrbeazugmCY8taGoAA=; b=WZ0l64+PUy6oJXsW57m7sC8m8OSenI86Esb1FY3mp5bXFEts+f8j89zfI3xGF8CbwD HgLbDfDd2r2e30EO5+MFvKYQcZa+XWS+V5XmcnNi26MsZbTglr7jLMLvyVubH4tdGC8h UenNLjOC5P2ljibr3ySBkdn4iMVnGB2fBUK59yd+nVjbIe3c4wAu7jGgrddYNvCYhwde jVrcVaSeQ3J8B5CZm2NpGReSkOyZUHoQcfTYnQlWvpX1aNHQHbm16TCnIL+14XlcmR3b UbXF7MGqAnFnmfvg79Xh2ivLvoCR0GkcTMsoGeWKzk7qVUkjtrxX5n4Xj7VrfYxEKsXM h3pQ== X-Gm-Message-State: AOAM532fql2WyRapSTZybH5mfCoW6bYQCFcU4XzfgPJ0T8hZcoQ273VC WJZNKJFYGt81vPczNLiEPvjv6WDmKwPaKp5E5djGtOtI X-Google-Smtp-Source: ABdhPJwUSwDHxrATtKKPLERfafR1g4s20jy898zK8jlQuKeOO2Qiy0duwtB8uWcZwseILE5RMkohtI+18VC/YZDLw90= X-Received: by 2002:ac2:4f02:: with SMTP id k2mr70246585lfr.415.1636321120439; Sun, 07 Nov 2021 13:38:40 -0800 (PST) MIME-Version: 1.0 References: <58645-1636211057.471076@1OT-.Fo4B.hS-J> In-Reply-To: From: Taras Halturin Date: Sun, 7 Nov 2021 22:38:29 +0100 Message-ID: Subject: Re: ctrl-u in vim-mode. bug. To: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= Cc: Oliver Kiddle , zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="0000000000001f55a405d039b317" X-Seq: 49552 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --0000000000001f55a405d039b317 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've just tested with vim -u NONE and it behaves the same way as written before (on step 5) - it clears the line to the beginning On Sun, Nov 7, 2021 at 10:34 PM Lawrence Vel=C3=A1zquez wr= ote: > 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 > --=20 Best Regards. Taras Halturin --0000000000001f55a405d039b317 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've just tested with vim -u NONE a= nd it behaves the same way as written before (on step 5) - it clears the li= ne to the beginning

On Sun, Nov 7, 2021 at 10:34 PM Lawrence Vel=C3=A1= zquez <larryv@zsh.org> wrote:
On Sun, Nov 7, 20= 21, 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

=C2=A0 =C2=A0 CTRL-U=C2=A0 Delete all entered characters before the cursor = in the
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 current line.=C2=A0 If there are = no newly entered characters and
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'backspace' is not empty,= delete all characters before the
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cursor in the current line.=C2=A0= See `i_backspacing` about
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 joining lines.

Do you have the "backspace" option set?

(If possible, it's good practice to suppress custom settings before
reporting "bugs".=C2=A0 [Unless you're discussing a nondefaul= t setting,
of course.]=C2=A0 Try your steps in `vim -u NONE`.)

--
vq


--
Best Regards.=
Taras Halturin
--0000000000001f55a405d039b317--