Disable Line Numbers in Fern's Sidebar within Vim
Line numbers take up a bit of horizontal space, here's how you can disable them in Fern (a sidebar tree view for Vim).
Quick Jump:
This is a small quality of life enhancement to disable line numbers only in
Fern’s buffer. Technically this will work if you use NERDTree or netrw with
a minor adjustment around the autocmd
file type too.
# Demo Video
Timestamps
- 0:19 – Gain extra horizontal space by disabling line numbers
- 0:52 – Going over the tiny bit of configuration to make this work
- 1:49 – Why I’m using setlocal instead of set
Reference Links
- https://nickjanetakis.com/blog/switching-from-nerdtree-to-fern-for-a-vim-tree-view-plugin
- Direct link to the commit in my vimrc
Are you going to be using this setting? Let me know below.