1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add Default netrw To Tree Liststyle as a vim til

This commit is contained in:
jbranchaud
2017-02-17 14:17:28 -06:00
parent 61e7ffe3c3
commit cbf67de201
2 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
# 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.
```vimscript
let g:netrw_liststyle = 3
```
Now, every time I visit or revisit a `netrw` window, I'll see everything
nicely displayed as a tree.