mirror of
https://github.com/tpope/vim-surround.git
synced 2025-12-07 05:04:32 +08: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
|
let after = ' ' . after
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
elseif newchar ==# "\<C-F>"
|
||||||
|
let fnc = input('function: ')
|
||||||
|
let before = '('.fnc.' '
|
||||||
|
let after = ')'
|
||||||
elseif idx >= 0
|
elseif idx >= 0
|
||||||
let spc = (idx % 3) == 1 ? " " : ""
|
let spc = (idx % 3) == 1 ? " " : ""
|
||||||
let idx = idx / 3 * 3
|
let idx = idx / 3 * 3
|
||||||
|
|||||||
Reference in New Issue
Block a user