GNOME Bugzilla – Bug 743138
vim mode: jump to lines
Last modified: 2015-01-19 10:58:09 UTC
In vim you can jump to lines by entering it's number in the command bar. I guess quite some people are using this (including me), so it should be supported in vim mode as well.
I've been fiddling around for fixing this, but I think gb_source_vim_ensure_scroll_off() is called too overzealously. Might need some refactoring.
FWIW, you can just type the line number in NORMAL mode followed by G.
Yes, but it always applies the scroll offset. In vim, the target line will be aligned in the middle of the screen if it is not visible on the current page. I was trying to imitate the vim behavior.
Created attachment 294822 [details] [review] vim: no need to apply scrolloff when jumping to line We just center the line vertically to match VIM.
Fixed in master, thanks! Attachment 294822 [details] pushed as aa93d82 - vim: no need to apply scrolloff when jumping to line
Created attachment 294850 [details] [review] vim: add goto line through command bar this allows going to a line with the command bar.
Added followup commit to avoid creating the regex until needed. Probably could just make it static though. Attachment 294850 [details] pushed as 901d114 - vim: add goto line through command bar