I'm trying to replicate the space above the equation environment. Currently, I have to manually alternate between
\vspace{\abovedisplayskip}
and
\vspace{\abovedisplayshortskip}
depending on the length of the line above. (If it's long enough, I use the first one. If it's short enough, I use the second one.)
How can I automate this into one simple command?

displaymath? – egreg Aug 07 '12 at 13:28