How to draw a vertical line instead of typing one at a time?
For example, I want to set a vertical line in column 10 for 20 rows. Like my first line. How can I do this in a smart way?
First set virtualedit=all to allow you to move around the end of the line:
virtualedit=all
:set virtualedit=all
Then...
10|<CV>20jr|
Where:
10|
20j
r|
Below is an alternative solution for setting virtualedit=all to make 20 lines with | in column 10:
|
10i<space><esc>r|
10i
Y
20p
In total:
10i<space><esc>r|Y20p
This is apparently a VIM plugin that does exactly what you are looking for:
http://www.vim.org/scripts/script.php?script_id=40
I have not tried it myself.
Source: https://habr.com/ru/post/902466/More articles:Removing DONE Tasks from the Agenda View - org-modeDependency Injection in PHP 5.3 - phpHow to create a hash similar to a similar input? - stringHow to prohibit input of invalid characters in input fields - javascriptMacro automatically adding a value to a value - macrosPHP preg_replace: remove punctuation from beginning and end of line - phpIn SQLAlchemy, how do I create a unique pair? - sqlCSS3: hover animation has z-index error - debuggingBottleneck of access to parallel computing memory - c ++How does this code work to find the largest of the three numbers without using any comparison operator? - algorithmAll Articles