I have lines as below.
I am not able to select the all the lines in full. How do i do it?
I don't want to use visual line selection mode, because if i copy and paste in line selection maode, they won't start from the the same column
If you want to select the entire line in a file, press V. Now when you press k or j to go up and down, vim will select the entire line above and below your cursor. Finally, you can select text in columns by pressing ctrl+v and moving up or down the block.
Place your cursor on the first character of the list item. Press Ctrl+v to enter visual block mode. The words VISUAL BLOCK will appear at the bottom of the screen. Use the Arrow keys to highlight the single character column.
Press v to begin character-based visual selection, or V to select whole lines, or Ctrl-v or Ctrl-q to select a block. Move the cursor to the end of the text to be cut/copied. While selecting text, you can perform searches and other advanced movement. Press d (delete) to cut, or y (yank) to copy.
Pressing $ will select to the end of each line.
Also, if you :set virtualedit+=block
you will be able to move the cursor past the end of the line when in visual block mode.
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