-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Support for gj
and gk
#22
Comments
Oh, thats a nice idea! Funnily enough I have already coded something like that for arrow key movement in scrollable views, i.e. the Finder file list or PDF viewers etc. for my personal movement keys and only compiled in when the appropriate flag is set (jklö -> left, down, up, right arrows): Lines 241 to 264 in 75d24df
this could be used to do exactly what you want with a bit of fiddling. I would accept pull-requests where this is optional (via a compile flag) and well integrated with the synchronization. |
(Just in case you are asking me, I unfortunately have zero knowledge of C and wouldn't be able to do that 🙈) |
Since most of the text fields where svim will be used have line wrapping, having
gj
andgk
would be very useful for mappings likeright now,
j
andk
move logical lines, which makes them a bit hard to predict in text fields where you are not sure where exactly the previous line is (i.e. is the line above wrapped or a "true" previous line?)The workaround might be as simple as mapping
gj
andgk
to arrow-down and arrow-up, since the arrow keys in macOS use visual instead of logical lines?The text was updated successfully, but these errors were encountered: