Hacker Newsnew | past | comments | ask | show | jobs | submit | syrupcore's commentslogin

I 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>


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: