Questions tagged [selection]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
54 views

vim - how do I cut some lines of file-1 to file-2 in 1 step?

When I need to cut some lines from one file to another file, I always do the following steps: Select the lines in file-1 :w >> file-2 Re-select the lines d This is super annoying if you need ...
1
vote
4answers
44 views

How to end selection at an occurrence of a word?

Let's say I have this text with | as my cursor: <<<<<<< HEAD hi ======= hello ====== >>>>>> XXXX GGg| Now, I'd like to select from >>>> to say second=== or ...
1
vote
0answers
23 views

Expanding region/selection for javascript

is there a way to configure https://github.com/terryma/vim-expand-region (or any other plugin) to work with js,jsx,ts,tsx files? I'm new to vim, I'm not sure what to do. The mentioned plugin is not ...
0
votes
1answer
54 views

Gradient color background for visual selections

In this video from Bisqwit, the selected line is colored by a gradient according to column number. Image is below. He implemented the gradient in a custom terminal emulator. Is there any way to ...
0
votes
2answers
83 views

How to vertically-block-select words of different length?

With other editors we can select vertical-blocks where each line has the same start column but not the same end-column. For example: print("", s.field1); print("", s.field_long); print("", s.f); ...
0
votes
0answers
46 views

How to start insert-mode completion from select mode using Vimscript?

I have some text selected in select mode. I want to delete it and start insert-mode completion. When I type these keystrokes into Vim it works perfectly: gvc<C-X><C-U> gv switches to ...