XVimProject / XVim2

Vim key-bindings for Xcode 9
MIT License
2.3k stars 181 forks source link

Hybrid line number mode #369

Open andyau-crunchyroll opened 3 years ago

andyau-crunchyroll commented 3 years ago

Now that relative line number has been partially implemented (PR# 343), hybrid line number mode would make a nice addition.

Hybrid line number is a combination of relative and absolute line numbers, where all line numbers in the editor are relative to the current line, except for the currently selected line. Instead, the currently selected line will display it's absolute line number.

Expected Behavior: Setting number and relativenumber in the user's .xvimrc config will enable hybrid line number behavior.

Screen Shot 2021-04-07 at 11 39 58 AM Working example in VS Code + Vim plugin

Actual Behavior: Xcode is showing line numbers as relative only (as if only relativenumber is enabled).

Screen Shot 2021-04-07 at 11 38 53 AM Current behavior in Xcode + XVim2