Skip to content

Instantly share code, notes, and snippets.

@ironhouzi
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ironhouzi/8e863d7b0eb5ee7c8cc9 to your computer and use it in GitHub Desktop.
Save ironhouzi/8e863d7b0eb5ee7c8cc9 to your computer and use it in GitHub Desktop.
Fixing terminfo for Neovim
  1. Create a copy of your terminfo file (mine is screen-256color):
  • mkdir -p ~/.terminfo && cd ~/.terminfo
  • infocmp > screen-256color
  1. Edit the file so that the backspace entry has the value \177. The name of the entry was in my case kbs, but perhaps you'll see key_backspace.
  • My example: il=\E[%p1%dL, il1=\E[L, ind=^J, initc@, is2=\E)0, kbs=\177
  1. Compile: tic screen-256color

  2. TERMINFO=~/.terminfo/ nvim works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment