For writing a text book I would like text expansion; on typing this:
it should expand this to:
I tried to use simple text replacement with
:s%/TEXT/NEWTEXT/gc, but problem is my requirement with three arguments vim should wrap some text around three arguments.
The same problem exists with
iabbrev requires typing TEXT and then a space.
How can I achieve this in Vim?