Skip to content

How to visually select entire line upwards with x & v? #3775

Answered by the-mikedavis
txtyash asked this question in Q&A
Discussion options

You must be logged in to vote

You can use vkX. vk will create a selection that includes something on lines 0 and 1 and then X expands the selection to be linewise.

There is also a extend_line_above command which doesn't have a default binding that behaves like x (extend_line_below) but goes upwards. Plus there's a newer command extend_line which works like x but extends in the direction of the selection. If you move upwards a lot then you may want to bind one of these.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by txtyash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants