I'm looking for functionality which may or may not exist. Basically, I'd like to have a location list split at the top of each writable buffer which shows the last line of each enclosing indentation level. So for the code:
def some_function(x, y, z): some code some more code even more code if var == 3: do something do another_thi|g
If my cursor were at
|, I would see in this window something like
> def some_function(x, y, z): > ... > if var == 3
If this doesn't exist, could such a plugin even be made for Vim (bear with me; I'm not a real programmer)? It seems like it would be very useful for orienting oneself in one's code after e.g., coming back from the coffee pot.