# Add A File Without Loading It

Generally, when you interact with files (e.g. `:e some-file.txt`), you are both adding it to the buffer list and loading the contents of the file as a separate buffer. The `:bad` command allows you to add a file to the buffer list without loading it. For instance, you can add your `README.md` to the buffer list and leave the current buffer in focus with:

```
:bad README.md
```

This command seems particularly useful for scripting the setup of an initial vim environment or preparing for a `:bufdo` command.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ploegert.gitbook.io/til/tools/vim/file/add-a-file-without-loading-it.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
