Last active
April 24, 2020 10:28
-
-
Save Milly/b09b03b9181826bee81f4c318a6aa2a6 to your computer and use it in GitHub Desktop.
Fix Ctrl-H key broken in Windows Terminal + Vim.exe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Fix <C-h> in Windows terminal (before set encoding) | |
" see: https://github.com/microsoft/terminal/issues/4397 | |
if !has('gui_running') && exists('$WT_SESSION') && !exists('$VIM_TERMINAL') | |
call map(['map', 'map!', 'tmap'], {_, map -> | |
\ execute(map.' '.nr2char(206).nr2char(3).nr2char(122)." \<C-h>") | |
\}) | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to