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

A while ago I saw a cool animation of an explanation to do something in Vim. I would like to be able to do that by taking a screenshot of the Vim window every time I press a key (automatically), does anyone know a tool that would allow me to do that in Linux?

share|improve this question
Just to confirm as well, you are aware no matter the speed you type at if this is meant to be a video you will get the same 30 fps? – AthomSfere Oct 16 '13 at 14:04
If you do not care for independence on where you put it, asciinema seems to be the most efficient solution. – Tim Oct 16 '13 at 14:09

Try the Replay Vim plugin. It supports byzanz and ffmpeg for recording your Vim session.

share|improve this answer

You can use Kazam or another tool to record the video and convert it to animated GIF with these commands. The first one creates a very large animated GIF and the second makes it more internet-friendly:

$ ffmpeg -i source.mp4 -loop 0 -r 5 -s 320x200 -pix_fmt rgb24 temp.gif
$ convert temp.gif -fuzz 8% -layers Optimize final.gif

I was about to suggest as a worthy alternative but they have renamed their service to asciinema which was already cited.

share|improve this answer

It seems that what you're looking is a software that records the terminal sessions, not the whole screen (or window). UNIX operating systems have this good old app called script. It does terminal recording but you need to send the resulting file to people and ask them to use the scriptreplay command in their terminal to replay it.

The easier solution is to use a service like which allows you to record a terminal session and publish it to where other people can watch it in their browser. Also, it supports embedding so you can put it on your blog post, your project documentation or in your conference talk slides.

share|improve this answer

It seems that the easiest way to create something like that would be to use screen recording software. Some apparently offer built in GIF support and others will give you a movie that you can then convert to animated GIF.

Here are some additional questions that will be of use:

In short, looks like Byzanz will do what you want.

share|improve this answer

I don't know your target; if it is for web, you might want to check out the solution developed by Sublime Text's author Jon Skinner which creates animations much more lightweight than animated gifs for screencaps:; he has detailed his neat approach in this blog post.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.