Clearing line, enter insert mode? #4225
-
I realized that this is something I do quite often in Vim: To achieve this in Helix, I need to do the following: Is there an easier way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Another way to select the current line (minus trailing and leading white space) is I have this bound to A-x = [ "extend_to_line_bounds", "trim_selections" ] So you could bind this to In theory putting it all in one key bind |
Beta Was this translation helpful? Give feedback.
-
I thought of a theoretical alternative. Would it be reasonable to request the following as an addition to the Match mode?
The mnemonics in Helix are really good and adding these makes sense IMO. |
Beta Was this translation helpful? Give feedback.
-
In vim,
However, now I have to remember to use
Now |
Beta Was this translation helpful? Give feedback.
Another way to select the current line (minus trailing and leading white space) is
x_
/X_
.I have this bound to
Alt-x
so I can change the current line using Alt + x c:So you could bind this to
V
and useVc
as you mentioned.In theory putting it all in one key bind
[ "extend_to_line_bounds", "trim_selections", "change_selection" ]
should also be possible but it currently does not work. There's an open issue if I remember correctly but I didn't find it after a quick search.