Add a lisp function call replacement

Not sure how useful this is but we'll sneak it in undocumented.
This commit is contained in:
Tim Pope
2013-01-01 01:42:57 -05:00
parent 29afa295ae
commit 4c9a4e0b34

View File

@@ -224,6 +224,10 @@ function! s:wrap(string,char,type,...)
let after = ' ' . after
endif
endif
elseif newchar ==# "\<C-F>"
let fnc = input('function: ')
let before = '('.fnc.' '
let after = ')'
elseif idx >= 0
let spc = (idx % 3) == 1 ? " " : ""
let idx = idx / 3 * 3