> For the complete documentation index, see [llms.txt](https://timhwang21.gitbook.io/index/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://timhwang21.gitbook.io/index/cli/vim/buffers.md).

# Buffers

## Close all but the current buffer

```
:%bd|e#|bd#
```

In English:

* `%bd` - close all buffers
* `e#` - open last buffer
* `bd#` - close last `[No Name]` buffer that's automatically created when all buffers are closed
