-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
line
text object
#8903
Comments
So as #4234 is an open issue, is that a thing that would be accepted as a PR? Then I'd give it a try. |
It seems unnecessary to me to have this re-implemented as a text-object: it's already implemented as That isn't as straightforward as it seems though (like in #4287) since the fall-through behavior for "whatever character is typed next" isn't currently mappable. |
We have all kinds of obscure text objects like paragraphs, functions, arguments... but it seems that a
line
textobject is a natural and useful extension.Assumed that
l
is the letter forline
(which is still available), you could do things likemild
to clear a line,mald
to delete a line,milms}
to put brackets around the current line.I know all of this can be done with other key-combos, but they all seem like hacks or workarounds and are not as intuitive.
e.g. do clear a line:
xdO<esc>
,xvhd
orx_d
.The text was updated successfully, but these errors were encountered: