显示行号:在vim命令行模式下输入
:set nu 或 :set number
取消显示行号:在vim命令行模式下输入
:set nonu 或 :set nonumber
查看文件编码格式:
:set fileencoding
修改文件编码格式:
:set fileencoding=gbk