preservim / vim-pencil

Rethinking Vim as a tool for writing
Other
1.57k stars 38 forks source link

"Soft" mode should support relative line numbers #57

Open srquinn21 opened 7 years ago

srquinn21 commented 7 years ago

In soft mode, set relative numbers will give the incorrect movement values. It would be ideal if somehow the number bar could be updated to display the correct movement values.

reedes commented 7 years ago

If someone could figure out how to do this, I'd welcome a pull request to fix it.

However I'm not optimistic a fix would be possible, as this seems to be a low-level Vim behavior.

alerque commented 4 years ago

I'm pretty sure this would have to be implemented using signs in the gutter rather than the native number column. This would likely not be very per formant. It's going to be super low priority for me to look into but in case anybody finds a way and want to work on this know that I'll be open for reviewing PR's and would be happy to see a contribution that addresses this.

antgel commented 4 years ago

I agree that this is difficult / impossible to do (so does Stack Overflow). Would it be possible to automatically disable relative numbering when soft-wrapping, as it's more hindrance than help?