diff --git a/plugin/surround.vim b/plugin/surround.vim index 46f3252..c6bda22 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -244,6 +244,11 @@ function! s:wrap(string,char,type,removed,special) elseif newchar == "\" || newchar == "\" let before = "{\n\t" let after = "\n}" + elseif newchar ==# 'o' + let replacement = substitute(input(">> "),"\\\\r","\r", '') + let all = s:process(replacement) + let before = s:extractbefore(all) + let after = s:extractafter(all) elseif newchar !~ '\a' let before = newchar let after = newchar