Learn Docker With My Newest Course

Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →

Disable Line Numbers in Fern's Sidebar within Vim

blog/cards/disable-line-numbers-in-ferns-sidebar-within-vim.jpg

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: Demo Video

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

Are you going to be using this setting? Let me know below.

Never Miss a Tip, Trick or Tutorial

Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per month (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.



Comments