S0und wrote:Can someone give me few good examples, what should i use this for?
http://jeffkreeftmeijer.com/2012/relative-line-numbers-in-vim-for-super-fast-movement/ wrote:Commands like j (down) and k (up) can be prefixed with numbers, so 5j will jump down five lines. While that’s pretty cool, chances are you won’t actually do that, since counting lines usually takes longer than pressing j until you’re on the right line, especially when you need to jump more than five lines. The same goes for deleting lines, as you probably switch to visual mode and press j a couple of times instead of counting lines and pressing d7d.
With relative line numbers you don't need to calculate in your head how many lines you need to jump. You just look the number of the line you want to go and use it to prefix your movement command.