Is this a commonly known feature? Because I have never seen it before. I wish I had been introduced to it about 10 years ago.
Relative Line Numbers in Vim
11–20 of 40 posts
Re: Relative Line Numbers in Vim
#12I have used (and like) relative line numbers for a while now. However, when using MacVim full-screen on large (high resolution) screens, the relativenumber and cursorline slow down redraws considerably on my Macs, to the point where it annoys me a lot. Does anyone else have the same experience and perhaps a solution?
Re: Relative Line Numbers in Vim
#13Relative line numbers may be useful at first, but they quickly show their limitation when one needs to jump to a specific line.
Re: Relative Line Numbers in Vim
#14I have used (and like) relative line numbers for a while now. However, when using MacVim full-screen on large (high resolution) screens, the relativenumber and cursorline slow down redraws considerably on my Macs, to the point where it annoys me a lot. Does anyone else have the same experience and perhaps a solution?
The last time I noticed this was with valgrind logs; and I have no idea what exactly is causing it (amount of lines doesn't seem to be it).
Thankfully it's perfectly usuable for day-to-day editing. Binding :set rn! to a key circumvents this problem well enough.
Re: Relative Line Numbers in Vim
#15Re: Relative Line Numbers in Vim
#16I have used (and like) relative line numbers for a while now. However, when using MacVim full-screen on large (high resolution) screens, the relativenumber and cursorline slow down redraws considerably on my Macs, to the point where it annoys me a lot. Does anyone else have the same experience and perhaps a solution?
Re: Relative Line Numbers in Vim
#17Re: Relative Line Numbers in Vim
#18spf13 is a great plugin bundle for vim that got me started using relative line numbering. It's great for the lazy person who doesn't want to bother setting up all the fancy vim plugins and settings. https://github.com/spf13/spf13-vim
Re: Relative Line Numbers in Vim
#19I used to use relative line numbers until I learned about dG. For example, I can use 8dG to delete from my cursor to (and including) line 8. Also works with yanking, e.g. 8yG.
d3j (delete 3 down) and y3j (yank 3 down) do the same things, but relative. I don't even need to look at the relative numbers anymore really. For short hops I just guess. I'm right most of the times.
Re: Relative Line Numbers in Vim
#20I used to use relative line numbers until I learned about dG. For example, I can use 8dG to delete from my cursor to (and including) line 8. Also works with yanking, e.g. 8yG.