vifm / vifm.vim

Vim plugin that allows use of vifm as a file picker
325 stars 18 forks source link

Incorrect colors/Lack of arrow/home/end key support #47

Open Melandel opened 3 years ago

Melandel commented 3 years ago

Hello,

I have trouble having both colors and arrow/home/end keys work in vifm.vim.

With the default termwintype, I have:

When trying to get the colors to work through this issue on vim/vim, someone suggested that I use set termwintype=conpty instead, which granted me:

Since then I tried using :term with both termwintype values, and found out that arrow/home/end keys worked.

Since :term has support for arrow/home/end keys regardless of termwintype values, but :Vifm doesn't, I figured this was the appropriate place for my issue.

Here's a screenshot: image

I am using gvim v8.2.1127 on Windows10.

Is there a way for me to have both correct colors, and arrow/home/end keys work ?

xaizek commented 3 years ago

Hi,

If I set termwintype=conpty on Windows10 on Vim from here, I get "ConPTY isn't supported" message and can't test this.

I think embedding shouldn't matter for terminal applications. If vifm works outside Vim and doesn't inside ConPTY, my guess would be that something is wrong with the embedding (maybe with ConPTY itself). Or maybe PDCurses needs to be taught to work with ConPTY (if you find another application that uses PDCurses, you could test how it handles input).

Vifm does configure terminal a bit, but not sure if that matters for embedding.