Vim's new hybrid line number mode - Jeff Kreeftmeijer

Well over a year ago, I wrote about using relative line numbers in Vim to speed up movement by displaying line numbers relative to the current line. This makes it easier to find out how many lines up or down you have to jump to get to where you want to be. Because I wanted to switch back to absolute line numbers when I wasn’t busy moving around files, I wrote a small vim plugin to do so and released it as vim-numbertoggle . This allowed me, and a lot of other people, to use relative numbers when it made sense, and switch back to the default when it didn’t. Since Vim 7.4, you can enable both the number and relativenumer settings at the same time, which will give you something I’ll call hybrid line number mode. Using that, all lines will show their relative line number, except for the line you’re currently on, which will show its absolute line number. Hybrid line number mode...