Placeholders interpolated from vim script
So, what would be the best way to do this?
I need to create a snippet which calls a vimscript function, the output of which must contain placeholders.
As far as I can figure, it has to be vimscript, as it calls the synIDattr() vim function to determine the current syntax, so that the return may depend on the current syntax.
Edit: To be clear, I want to write a vim function which does the following:
function! Foo()
return \sqrt[$
endfunction
And is called by a snippet:
snippet bar
`!v Foo()`
end snippet
Where the placeholders are interpreted as such. (It goes without saying that real function will have more than one possible return.)
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- UltiSnips Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
Can you help with this problem?
Provide an answer of your own, or ask Marshall Eubanks for more information if necessary.