I figured out there is some sort of a bug with Suckless's ST terminal emulator (0.8.2) regarding VIM. If I download ST's source files and open a configuration file config.h
I can find a setting:
char *termname = "st-256color";
I keep this default setting and build the ST binary. Then I start the built ST binary and I noticed this:
- keys DEL and HOME work fine inside the ST terminal,
- VIM if executed from within ST terminal will display no syntax highlighting.
On the other hand, if I change the default setting to:
char *termname = "xterm-color";
I notice this:
- keys DEL and HOME do not work inside ST terminal - they both print tilde
~
- VIM if executed from within ST terminal will display proper syntax highlighting.
In both cases I had a file ~/.inputrc
with only one line:
set enable-keypad on
Which was supposed to make DEL work accordingly to Arch Wiki. But if I remove it in the second case, keys DEL and HOME work, but DEL does not.
So it is like I can't have it all. One or the other... Does anyone have any ideas, how to overcome this? I would perfer a solution without ~/.inputrc
.