# Comparing buffers with vimdiff

> Episode of [Vimcasts](https://podistic.com/podcast/vimcasts.md) · Published January 15, 2014 · Duration 4:16

- **Listen on Podistic:** https://podistic.com/episode/comparing-buffers-with-vimdiff
- **Video:** http://media.vimcasts.org/videos/60/vimdiff.m4v (video/x-m4v)

## About this episode

Vim’s diff mode allows us to easily compare the contents of two (or more) buffers. We can start Vim in diff mode using the `vimdiff` command, or if Vim is already running we can switch to diff mode using the `:diffthis` command. The beauty of the `:diffthis` command is that it works with unnamed buffers, whereas `vimdiff` can only work with files.
