Hi<div>I would like to write a simple script doing this:</div><div>if xcvb is the word right between the cursor, it should replace it by</div><div>\begin{xcvb} \end{xcvb}</div><div>and place the cursor in the middle. Could you explain me how to do it?</div>
<div>(from the example scripts I only know how to do it if xcvb is selected)</div><div>Regards, P.</div>