For example, there are some text like this:
001 aaaaa
002 bbbbbbbb
003 ccc
I want to select
aaaaa
bbbbbbbb
ccc
and yank it. What should I do?
The following sequence should do the trick
ggw<C-v>G$
where
gg -- Goes to top of file
w -- skips one word
<C-v> -- starts visual block select
G -- selects until end of file
$ -- selects to end of each line
Switch to Visual Mode
in Vim by pressing v
in prompt
place the cursor
in the column
to select
Use ctrl+v
to select a block to copy
Then the column alone will be selected and copy needed text alone and can yank it:)
Please refer the link here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With