You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An interesting idea. It feels like most operations that take a count work on a single line by default, and the count "increases" their effect. In this case, it'd be the opposite, a count would limit their effect area. So it feels wrong to me in that regard, but then I don't use counts much anyway, so who knows.
I've implemented the functionality -- it turns out it's not particularly difficult -- but there's a bit of a rub. The plugin uses a clever setup to use gJ as an override, but, if you give it a count, falls back to the built-in gJ.
Currently, you could use the functionality by setting the mapping yourself:
nmap<silent>gJ<Plug>SplitjoinJoin
But I'll think about what I could do to make it available. Maybe a setting to disable the fancy fallback behaviour...
At the moment,
gJ
from the beginning of the first line ofgives
It would be nice if the mapping
gJ
would accept a count, to allow joining a given number of lines.The text was updated successfully, but these errors were encountered: