title: ST & VIM -- no colors
body: <p>I figured out there is some sort of a bug with Suckless's <a href="https://st.suckless.org/" rel="nofollow noreferrer">ST terminal emulator</a> (0.8.2) regarding VIM. If I download ST's source files and open a configuration file <code>config.h</code> I can find a setting: </p>
  
  <pre><code>char *termname = "st-256color";
  </code></pre>
  
  <p>I keep this default setting and build the ST binary. Then I start the built ST binary and I noticed this:</p>
  
  <ul>
  <li>keys <kbd>DEL</kbd> and <kbd>HOME</kbd> work fine inside the ST terminal, </li>
  <li>VIM if executed from within ST terminal will display no syntax highlighting. </li>
  </ul>
  
  <hr>
  
  <p>On the other hand, if I change the default setting to:</p>
  
  <pre><code>char *termname = "xterm-color";
  </code></pre>
  
  <p>I notice this: </p>
  
  <ul>
  <li>keys <kbd>DEL</kbd> and <kbd>HOME</kbd> do not work inside ST terminal - they both print tilde <code>~</code></li>
  <li>VIM if executed from within ST terminal will display proper syntax highlighting. </li>
  </ul>
  
  <hr>
  
  <p>In both cases I had a file <code>~/.inputrc</code> with only one line:</p>
  
  <pre><code>set enable-keypad on
  </code></pre>
  
  <p>Which was supposed to make <kbd>DEL</kbd> work accordingly to <a href="https://wiki.archlinux.org/index.php/St#Troubleshooting" rel="nofollow noreferrer">Arch Wiki</a>. But if I remove it in the second case, keys <kbd>DEL</kbd> and <kbd>HOME</kbd> work, but <kbd>DEL</kbd> does not.</p>
  
  <p>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 <code>~/.inputrc</code>.</p>