Skip to content

Conversation

@JohnReid
Copy link

Often I want to format a paragraph such as this one:

\begin{align}
...
\end{align}
This is
the paragraph
I wish
to format.....

So I added a text object so that I could do gwir to format it. I am quite new to vim scripting so I'm not sure that I've done everything the best way ;) Hopefully others might find it useful.

@JohnReid
Copy link
Author

TBH I'm sure this could be usefully generalised. For instance I often want to format items in lists:

\begin{itemize}
  \item I want to format this item separately from
  \item this item!
\end{itemize}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant