From 4c9a4e0b34a8c9056dcd9a1ae2e0d41f3149062d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 1 Jan 2013 01:42:57 -0500 Subject: [PATCH] Add a lisp function call replacement Not sure how useful this is but we'll sneak it in undocumented. --- plugin/surround.vim | 4 ++++ 1 file changed, 4 insertions(+) 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