Programming in vi

Can vi / vim commands be used to write 1-10 on separate lines?

+4
source share
3 answers
<Preview>: call append ('.', Range (1, 10))
+4
source

You will get a list of functions with :help functions if ViM is installed correctly. In addition, you should also read :help script .

0
source

You can also run vi scripts using the -s option in vi, i.e.

vi -s file_name file_name

0
source

Source: https://habr.com/ru/post/1336745/


All Articles