The following map is used to do add span tags to highlighted text
in-line. My problem is that it only works sometimes, and I don't know why.

:map ,bb c<CR><CR><ESC>kpI<span><ESC>A</span><ESC>kJJ

The map works by cutting the highlighted text, putting it on its own
line, adding the tag to the front and the end of the line, and then
joining the lines.

Any thoughts on why this only works sometimes? I can't isolate what
conditions bring it about.

Reply via email to