Vim has a lot of useful registers from which you can access the contents of various actions. There's ":
for the last command in the command line, "/
for the last search, ".
for the last insert, etc...
Is there a register that stores the last action performed (i.e. what gets done when I press .)?
.
command. I think it's best to keep these links however, as the questions are related..
is local to the buffer; it would have to introduce the concept of buffer-local registers. I think a function to access this would be better.