Let's say you have a file with these lines and whant to reverse its paragraphs order. Using our belove [n]vim you can just execute
I have added the line numbers but you can ajust the numbers accordingly
1 \begin{rSubsection}{Example 1}{}{Redacted}{}
2 \item Stuff I did
3 \item Also did other things
4 \end{rSubsection}
5
6 \begin{rSubsection}{Example 2}{}{Redacted}{}
7 \item Stuff I did
8 \item Also did other things
9 \end{rSubsection}
10
11 \begin{rSubsection}{Example 3}{}{Redacted}{}
12 \item Stuff I did
13 \item Also did other things
14 \end{rSubsection}
15
16 \begin{rSubsection}{Example 4}{}{Redacted}{}
17 \item Stuff I did
18 \item Also did other things
19 \end{rSubsection}
My solution
:$pu _ | 16,20m0 | 16,20m5 | 16,20m10
Other way of solving this puzzle
:$pu _ | normal gg
:16,$m.-1 | normal j
@@
@@
The final result
\begin{rSubsection}{Example 4}{}{Redacted}{}
\item Stuff I did
\item Also did other things
\end{rSubsection}
\begin{rSubsection}{Example 3}{}{Redacted}{}
\item Stuff I did
\item Also did other things
\end{rSubsection}
\begin{rSubsection}{Example 2}{}{Redacted}{}
\item Stuff I did
\item Also did other things
\end{rSubsection}
\begin{rSubsection}{Example 1}{}{Redacted}{}
\item Stuff I did
\item Also did other things
\end{rSubsection}