Closed austinliuigi closed 2 years ago
would you mind explaining what info in the link provided resolves this issue? I am new to terminal configs in general and read that entire section but still have no idea what the path is to resolve the problem. Just as the OP described the vim cursor behavior works as expected in gnome terminal.
If you have issues with vim not changing your cursor, either use nvim which will, or configure vim to do it, as described in the kitty FAQ
@kovidgoyal Thanks a lot Kovid for the quick response! I just realized what the root cause of the issue was. In order to get the cursor size to change depending on vim mode in bash, you have to update the .inputrc file (at least for the solution I found online). I just learned that kitty doesn't utilize the .inputrc file which explains why this solution led to a successful result in gnome terminal but not in kitty. At any rate, today I ended up switching to zsh as my shell and however zsh handles vim mode works perfectly in kitty (cursor size changes without problem depending on mode). Thanks again for the quick response, kitty has quickly become my favorite terminal emulator; the kitten theme configure feature is awesome!
Describe the bug
Upon a new instance (opening a new tab or window of kitty) of bash or zsh, cursor types defined in .inputrc or .zshrc depending on vi mode acts incorrectly. However, if you start bash or zsh using
bash
orzsh
, it works correctly.To Reproduce
Steps to reproduce the behavior:
Screenshots
1. Using bash as default shell:
bash.webm
Note that I enter normal mode right before I move the cursor
2. Using zsh as default shell:
zsh.webm
x
in normal mode to delete changes the cursor when it shouldn'tWe can also see that in both bash and zsh, the cursor changes work properly when using the GNOME Terminal that ships with Ubuntu.
Environment details
Additional context
The problem still occurs with
kitty --config NONE
The lines in my ~/.inputrc for bash vi-mode cursor are:
The lines in my ~/.zshrc for bash vi-mode cursor are: