1. 显示行号html
:set numberlinux
或者vim
:set nuspa
2. 取消行号显示htm
:set nu!blog
3. 每次打开都显示行号get
修改vi ~/.vimrc 文件,添加:set numbervimrc