html tool

2021年1月20日星期三

vim-range-for

 https://www.iteye.com/blog/xineohpanihc-1019140

使用range()函数

 

range()是个新的函数,用来产生包含数字序列的列表。当然也可以用来生成行号:

" 为前30行加上行号
:for i in range(31)
:call setline(i,i .' '. getline(i))
:endfor

没有评论:

发表评论