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