You can try to :set virtualedit+=block
VI select visual block cannot reach the end of line
-
01-07-2022 - |
Question
I was trying to select a block of code and do the word replacement inside that block.
(Trying to replace all the letter b in the second and third line with letter d)
However, I cannot reach the end of a few lines while selecting.
For example, I cannot select all the characters in the second and third line. Any idea how can I do it? Images below shows how much I can select at most for the second and third line, cannot move the cursor further to the right.
Thanks!
Solution
OTHER TIPS
- place a cursor on first letter in row
- press "v"
- move cursor in right and bottom directions until selection is done
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow