您可以使用(至少在VIM上):
: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