Skip to content

Comment on Better line numbers for Vimparent

Comments

I have two more events since I don't need relative numbers in a buffer that I'm not currently working in:

  set relativenumber
  autocmd InsertEnter,WinLeave * :set norelativenumber
  autocmd InsertLeave,WinEnter * :set relativenumber
(Also, :set number does not reset to non-relative numbers anymore for me)
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.