Suppose i have several lines of text:
line1 line1
line2 line2
line3 line3
I want to create a vimscript function that has the following result:
<itemizedlist>
<listitem><para>line1 line1</para></listitem>
<listitem><para>line2 line2</para></listitem>
<listitem><para>line3 line3</para></listitem>
</itemizedlist>
How do i use '< and '> to move to the beginning and end of multiline visual selection inside a vimscript function? vim writes me "Not an editor command: '<"