voldikss / vim-floaterm

:computer: Terminal manager for (neo)vim
MIT License
2.47k stars 78 forks source link

colors now show in normal mode (vim) #385

Open giceli opened 1 year ago

giceli commented 1 year ago

problems

while i change the mode from insert to normal, the colors disappear

insert mode

图片

normal mode

图片

Enviroment

OS: Ubuntu.
Version:  VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 21 2022 19:10:09)
Terminal: gnome-terminal
Color schemes: desert
onlycalm commented 1 year ago

I have also encountered this problem, and hope to solve it as soon as possible. In addition, there is a similar small problem. By * highlighting the current word or / search highlighting, it sometimes does not highlight yellow.

giceli commented 1 year ago

I have also encountered this problem, and hope to solve it as soon as possible. In addition, there is a similar small problem. By * highlighting the current word or / search highlighting, it sometimes does not highlight yellow.

emm, now i have a method to resolve this problem. in my environment, ":set filetype=", my highlighting will not disappear and looks like terminal in normal mode. and then, research author's source code, change "filetype" to "buftype", and the value of "buftype" is "terminal". so, may be this problem is caused by "filetype".