News for hackers. Stuff that matters.
Re:Vim Plugins You Should Know About, Part I: surround.vim by pkrumins on Monday December 08, 2008 @09:40AM (#389864)
You must have a different surround.vim script. Perhaps someone else wrote a script and called "surround.vim" as well.

The one I am talking about does not define stp and requires < > between tags.

What does your 'stp' do?

Edit: I see what you did there. You were in visual mode!

Re:Vim Plugins You Should Know About, Part I: surround.vim by thomasmallen on Monday December 08, 2008 @09:50AM (#389872)
Of course. surround.vim couldn't get away with clobbering "s" in normal mode.
Re:Vim Plugins You Should Know About, Part I: surround.vim by pkrumins on Monday December 08, 2008 @09:54AM (#389877)
this works for me:

  viwstp>
turns

  foo
into

  <p>foo</p>
Edit: (30 mins later) Now I understood fully what was happening. ;)