Google

Archives

vi, vim 显示行号或行数

在命令模式输入以下命令

1. 显示行号
:set number
2. 取消行号显示
:set nonumber
3. 跳到一特定行 (必须得在命令模式,好像必须每次都得先按Esc键

回到第一行: G

跳到特定行如99行:  99G

Incoming search terms for the article:

  • vi 显示行数 (25)
  • vim 取消行号 (6)
  • vim 显示行数 (3)
  • vi 显示行号命令 (3)
  • vi 显示行 (3)

Related Posts

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>