Lets say I've got 10 lines:
1. Foo
2. Bar
3. Baz
4. Quz
5. Qaz
How could I select lines 1-3 and than 4-5.
|
Lets say I've got 10 lines:
How could I select lines 1-3 and than 4-5.
| |||||
feedback
|
|
You'll need to use registers, because there's no way to highlight more than a single block at a time without using plugins. The structure is " Basic example: Do a visual selection with either
Yank/cut it into a register with
Do the same thing for the next block, but with a different register.
Now, both selections are in registers
If you want to append the contents of the
You can also yank multiple lines without even entering visual mode. The command is | ||||
|
feedback
|
|
Using registers would be the best way to go about it. But if you insist on having non-contiguous visual selection, then here's a plugin that does that - | ||||
|
feedback
|