diff --git a/plugin/surround.vim b/plugin/surround.vim index 825d90c..172b0a2 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -224,6 +224,10 @@ function! s:wrap(string,char,type,...) let after = ' ' . after endif endif + elseif newchar ==# "\" + let fnc = input('function: ') + let before = '('.fnc.' ' + let after = ')' elseif idx >= 0 let spc = (idx % 3) == 1 ? " " : "" let idx = idx / 3 * 3