Skip to content
Discussion options

You must be logged in to vote

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:

A-x = [ "extend_to_line_bounds", "trim_selections" ]

So you could bind this to V and use Vc 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.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ChrHorn
Comment options

Answer selected by superDuperCyberTechno
Comment options

You must be logged in to vote
1 reply
@sudormrfbin
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants