您可以使用(至少在VIM上):
原文链接:https://www.f2er.com/bash/389459.html:set invnumber
更多信息:
:set number Turn line numbers on :set nonumber Turn line numbers off :set invnumber Toggle line numbers :set number! Toggle line numbers :set number& Set option to default value :set number? Show value of option
来源:http://vim.wikia.com/wiki/Managing_set_options#Boolean_options