开发者

programming in vi

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜