Excerpts from informationen's message of Sat Sep 10 02:44:17 -0600 2011:
>> with "toggleWSNoSP" i can toggle between the recently visited workspaces.
> How can i do that for the most recently used windows? Say i am
> working with vim in one window and ghci in another. How can i
> define a keyboard shortcut to toggle between the two?
>
With cycleRecentWindows from XMonad.Actions.CycleWindows you get
something like this, although it re-arranges windows within the stack,
which may not be what you want if the windows you toggle are not meant
to tile just "above" and "below" the focused one. This was primarily
written for use with layouts that hide most or all the unfocused
windows.
I'm not aware of anything that keeps track of history and toggles
between windows without re-arranging their position in e.g. Tall or
Grid, etc.
regards,
wmw