开发者

programming in vi

开发者 https://www.devze.com 2023-02-06 03:27 出处:网络
Is it possible to 开发者_运维问答use vi/vim commands to write the number 1-10 on separate lines?

Is it possible to 开发者_运维问答use vi/vim commands to write the number 1-10 on separate lines?


:call append('.', range(1, 10))


You will get a list of functions using :help functions if ViM is installed correctly. Additionally you should read :help script, too.


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

vi -s scriptname filename

0

精彩评论

暂无评论...
验证码 换一张
取 消