Open vuhuulan opened 1 week ago
Note that that feature is already supported by monaco by setting lineNumbers: 'relative'
in the editor options
@CGNonofr Thank you for the response. I see. Coming from Google Colab, I didn't know much about this. Also saw people asking the same question regarding Leetcode vim mode and was pointed to the monaco version that the site used, so I assume it's not about monaco editor?
If that is the case, I first asked the question in colabtools and closed it for duplication (with this one), should I reopen that and close this one instead?
I'm just saying that having relative line numbers are supported out of the box by monaco, monaco-vim just needs to set the appropriate editor setting, it shouldn't be hard to implement
2jd
,4j
,5k
, etc.:relativenumber
and:norelativenumber
(similar to vim)