Skip to content

New in 2.27.0: Vim used for git commit ignores capital letters #2736

@krryan

Description

@krryan
  • I was not able to find an open or closed issue matching what I'm seeing

Bah, forgot to check Closed issues; #2689 seems to be a duplicate. Will try the snapshot recommended there.

Yup, that worked. Really should update the main release for this, it’s been three weeks.

Setup

  • Git for Windows 2.27.0-64-bit
$ git --version --build-options

git version 2.27.0.windows.1
cpu: x86_64
built from commit: 907ab1011dce9112700498e034b974ba60f8b407
sizeof-long: 4
sizeof-size_t: 8
  • Windows 10 Pro 64-bit
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.18362.900]
(c) 2019 Microsoft Corporation. All rights reserved.
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VIM
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
Enable Pseudo Console Support: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Nothing I am aware of, though I am sure there must be something since a bug like this surely would have been caught if it weren’t due to some unique issue on my machine.

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Git Bash as installed by Git-2.27.0-64-bit.exe

git commit

(with actual staged edits, or if using --allow-empty; makes no difference that I can tell)

or, for that matter,

vim

And just to make sure it wasn’t my .vimrc, I tried

vim -u NONE
  • What did you expect to occur after running these commands?

VIM to work normally.

  • What actually happened instead?

VIM ignores all key combinations of Shift + Letter, regardless of mode. So A does not enter entry mode (or do anything else), if I enter entry mode with i I cannot type capital letters except by using Caps Lock, and if I type :, Shift + Letter is ignored there as well. This makes Vim useless.

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

Doesn’t even have anything to do with git per se.

But under no circumstances will I consider using another editor. Instead, I’m rolling back to 2.26 for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions