vim去行号

底行模式

:%s/^\s*[0-9]*\s*//g

恢复缩进,在普通模式下

gg
//至段首
v
//visual模式
G
//段尾
=
//恢复缩进
原文地址:https://www.cnblogs.com/plinx/p/2910785.html