From cbf67de201bc19489de1c1c9b5b7950b9175e16e Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Fri, 17 Feb 2017 14:17:28 -0600 Subject: [PATCH] Add Default netrw To Tree Liststyle as a vim til --- README.md | 3 ++- vim/default-netrw-to-tree-liststyle.md | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 vim/default-netrw-to-tree-liststyle.md diff --git a/README.md b/README.md index 269d389..e3142a2 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really warrant a full blog post. These are mostly things I learn by pairing with smart people at [Hashrocket](http://hashrocket.com/). -_504 TILs and counting..._ +_505 TILs and counting..._ --- @@ -504,6 +504,7 @@ _504 TILs and counting..._ - [Create A New Directory In netrw](vim/create-a-new-directory-in-netrw.md) - [Create A New File In A New Directory](vim/create-a-new-file-in-a-new-directory.md) - [Creating Non-Existent Directories](vim/creating-non-existent-directories.md) +- [Default netrw To Tree Liststyle](vim/default-netrw-to-tree-liststyle.md) - [Delete Every Other Line](vim/delete-every-other-line.md) - [Delete Lines That Match A Pattern](vim/delete-lines-that-match-a-pattern.md) - [Delete To The End Of The Line](vim/delete-to-the-end-of-the-line.md) diff --git a/vim/default-netrw-to-tree-liststyle.md b/vim/default-netrw-to-tree-liststyle.md new file mode 100644 index 0000000..d2aceb2 --- /dev/null +++ b/vim/default-netrw-to-tree-liststyle.md @@ -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.