mirror of
https://github.com/tpope/vim-surround.git
synced 2025-11-15 06:43:49 -05:00
Add a lisp function call replacement
Not sure how useful this is but we'll sneak it in undocumented.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user