I don't think there is, but you can always write it yourself as:
emulate -L zsh
set -o extendedglob
zle -N delete-horizontal-space
bindkey '\e\\' delete-horizontal-space
I can not reproduce the problem that leaving REPL python changes lnext.
But I can confirm that you need to source a file twice to get the bind key to work (the output of mapping works).
Note that you need to start a logging bash session to get .bash_profile to be read. A file like:
$ cat ~/.bash_profile
echo bash_profile read
#stty lnext ^-
stty lnext ''
Many keyboard layouts use Right Alt (aka AltGr) by default for accessing 3rd and 4th level symbols. Hence, in order to make the Right Alt+Shift shortcut work for switching input languages, you need to explicitly select some other 3rd level key.
You may want to edit /etc/default/keyboard and consider this line to achieve what you want:
I don't know which OS you are using but for Ubuntu 18.04 LTS, I am using this command to switch between languages:
setxkbmap -option grp:alt_shift_toggle us
If you want to change between languages, replace us by your desired language. For example, if you want to use German keyboard change it to de:
setxkbmap -option grp:alt_shift_toggle de
This does exactly what you want, regardless of what's in $WORDCHARS, and makes the killed words available to yank:
autoload -Uz backward-kill-word-match
bindkey '^W' backward-kill-space-word
zle -N backward-kill-space-word backward-kill-word-match
zstyle :zle:backward-kill-space-word word-style space
bindkey '^[^H' backward-kill-bash-word
zle -N backward-...
I just hacked together the following solution. It not only works in Sublime Text, but also allows to select text with shift.
Add preserve[Shift+LevelThree] = Shift; to …/xdb/types/iso9995. Details on askubuntu.
Add type="THREE_LEVEL" and actions[Group1]= [NoAction(), NoAction(), RedirectKey(keycode=<UP>, clearmods=Lock) (for up) to your ...