Recently I found this question: Is it possible to map one key to two commands, doing 2nd command only if first fails
It's working well, but I'd like it to work this way: when Alt-l
is pressed, do ctrl-w
l
, but only when there is another window to the right. Otherwise, do gt
. Same applies to alt-h
.
Is this even possible? I can't find any {expr}'s that would could allow me to do such things