XVimProject / XVim2

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

the relative line number is not correct #344

Closed ysnows closed 3 years ago

ysnows commented 3 years ago

MacOs Catalina Version 10.15.7 (19H15) Xcode Version 12.1 (12A7403)

image

davidbjames commented 3 years ago

This occurs whenever there are lines lengths that exceed the current editor width which throws off the relative line number by as many lines as are wrapped – this happens whenever the cursor is below the line wraps. For example, if you have a long line of code that will not fit within the editor window (i.e. it wraps) the relative line number will be off by the number of wrapped lines. On the other hand, if you make the editor window larger so the line no longer wraps then relative numbers will work again.

kentrh commented 3 years ago

Yeah, I stated this in the original issue (https://github.com/XVimProject/XVim2/issues/28#issuecomment-729209334), so for now you just have to turn off line wrapping in xcode settings for it work.

ysnows commented 3 years ago

turn off line wrapping in xcode settings works, thank you...