How do I draw a vertical line instead of typing one by one?
For example, I wanna set a vertical line in column 10 for 20 rows. Just like my first line. how do I do that in smart way?
First, set virtualedit=all
, to allow yourself to navigate past the end of a line:
:set virtualedit=all
Then:
10|<C-V>20jr|
Where:
10|
: moves you to screen column 1020j
: moves you down 20 lines (adjust to taste)r|
: replaces the selection with bars