3 ms·
set relativenumber I had been using Vim for years, and this is fundamentally one of the most useful settings I came across. I think it's only available it th
by dylanz 15y ago
set relativenumber
I had been using Vim for years, and this is fundamentally one of the most useful settings I came across. I think it's only available it the latest rel.
Funny side note, I was out on the town one night and saw a bunch of guys and girls hacking on their laptops... in a club. I noticed one guy using Vim, came up behind him and told him he has a good taste in editors. It turns out he's Jay Freeman (saurik). I showed him relativenumber and he was stoked. EOS.
- sunsoong 15y agoThank you for making me aware of this.
- michaelty 15y ago(stares in wonder)
- SquareWheel 15y agoI love Jay, seems like a great overall guy.
- aerique 15y agoIf you ever run into him again, buy him a beer please for Cydia.
- dreur 15y agoThanks a lot! For a vimrc also supporting other version than 7.3: if version >= 730 set relativenumber endif
- syrupcore 15y agoI ran across some variation on this toggle somewhere. Very handy. " toggle line numbers from absolute to relative with f2. map <silent> <F2> :if &number <Bar> \set relativenumber <Bar> \else <Bar> \set number <Bar> \endif<cr>