How   can  I   run  a   command   on  all lines   delimited,  say   by\begin{otherlanguage} and \end{otherlanguage}?For example,1 This line should not be affected,2 \begin{otherlanguage}3 but this should;4 \end{otherlanguage}5 this should not.(The cmd could be norm A test.)
Executing a command on delimited lines
regular expression;ex mode
You can use pattern delimiter for this::/first/,/second/norm ddYou can use any search pattern around the ,. If you want to use only the inside of the matched patterns, use + and - like so::/first/+1,/second/-1 norm dd