kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 677 forks source link

Navigating results with arrow keys turns on insert mode and inserts characters with `foot` terminal #794

Closed nmschulte-aviture closed 2 years ago

nmschulte-aviture commented 3 years ago

I believe this issue is related to my choice of terminal. It sets TERM=foot: https://codeberg.org/dnkl/foot.

After searching, trying to navigate the results list with the arrow keys, vim is switched to insert mode and A, B, C, or D characters are inserted, depending on the arrow.

Changing to e.g. TERM=urxvt seems to be a workaround.

How can I make this work without a workaround?

https://github.com/kien/ctrlp.vim/issues/209 https://github.com/kien/ctrlp.vim/issues/579

erichamers commented 2 years ago

Just if anyone runs into this issue and doesn't mind a quick fix, I'm on alacritty, putting set term=xterm-256color seems to do the trick.

samhed commented 2 years ago

I have the same issue despite having term=xterm-256color already.. This started happening after upgrading to vim version 8.2.4529 this morning.

nsslh commented 2 years ago

I have the same issue despite having term=xterm-256color already.. This started happening after upgrading to vim version 8.2.4529 this morning.

Fixed in vim, see issue in active fork.

samhed commented 2 years ago

Nice!

nmschulte-aviture commented 2 years ago

well, I don't know how I missed this; closing due to: https://github.com/kien/ctrlp.vim/commit/6b5fd4d7113840bf88f584e62988d7941c156d42