# Default netrw To Tree Liststyle

The built-in `netrw` plugin is a great way to browse files and directories within a Vim session. `netrw` supports four ways of displaying files and directories. That is, there are four liststyles. You can toggle through these by hitting `i`.

I prefer the tree liststyle, which is not the default. I can set the tree liststyle as the default by adding the following line to my `.vimrc` file.

```
let g:netrw_liststyle = 3
```

Now, every time I visit or revisit a `netrw` window, I'll see everything nicely displayed as a tree.


---

# 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/default-netrw-to-tree-liststyle.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.
