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
精彩评论