voku / dotfiles

:bookmark_tabs: .dotfiles for Bash (Linux) / ZSH (Linux) / Git Bash (Windows) / Cygwin (Windows) / Bash on Ubuntu on Windows
MIT License
217 stars 49 forks source link

fix ALT key mappings for terminals generating escape sequences #28

Closed DrVanScott closed 8 years ago

DrVanScott commented 8 years ago

Just recognized that some mappings of .vimrc do not work in cygwin, e.g. (which is synonym for ). This PR fixes this for at least mintty.

Need to be tested in other environments. Do you understand the difference betwenn

set timeout ttimeoutlen=50

and

set ttimeout ttimeoutlen=50

as described in http://stackoverflow.com/a/10216459/2910279 ? For me, the later seems to be more restrictive, so i've choosen that... The current solution only maps the lowercase combinations.


This change is Reviewable

DrVanScott commented 8 years ago

Fix also works (and is also required) for Ubuntu 16.04, pure tty and gnome terminal. (gvim works with and without)

voku commented 8 years ago

Thx for the fix, merged (https://github.com/voku/dotfiles/commit/ff9880689e0387331cfc9c899a62f6490c66235e) and I will try / test it :-)