《Vim-初学设置行号样式》

来源:互联网 发布:戏曲分类知乎 编辑:程序博客网 时间:2024/05/20 07:34

可以用:help number_relativenumber来查看样式

The 'relativenumber' option changes the displayed number to berelative to the cursor.  Together with 'number' there are thesefour combinations (cursor in line 3):        'nonu'          'nu'            'nonu'          'nu'        'nornu'         'nornu'         'rnu'           'rnu'    |apple          |  1 apple      |  2 apple      |  2 apple    |pear           |  2 pear       |  1 pear       |  1 pear    |nobody         |  3 nobody     |  0 nobody     |3   nobody    |there          |  4 there      |  1 there      |  1 there

可以在设置文件里进行这样设置:

:set relativenumber


0 0
原创粉丝点击