vim删除行首数字

:1,$ s/^[0-9]{1,}//g

:% s/^[0-9]{1,}//g

:18,200 s/^/#/g

:19,28 s/^#//g

原文地址:https://www.cnblogs.com/ruiy/p/vim.html