Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to have yasnippet expand out a list. Ideally I'd like to have a list of items, for example:

'((ERROR_FILE_NOT_FOUND "The file was not found")
  (ERROR_SERVER_CRASHED "Server has crashed"))

I'd like to pass that to the snippet when expanding so that I can output a block of code for each list item. Currently I would do this sort of thing with a bit of custom list code, but I'm just curious if you can do it with a yasnippet.

share|improve this question
I didn't understand the question. What would you like to have as output ? – ychaouche Apr 21 '15 at 10:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.