def my-command %{
    buffer-next # go to next
    %sh{ echo buffer-previous }
    exec ifoo<esc>
}