vim line numbers - how to have them on by default?

前端 未结 8 1083
迷失自我
迷失自我 2020-12-12 09:07

I can :set number from within a file I\'m editing but how can I have them always be on by default?

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 09:32

    Terminal > su > password > vim /etc/vimrc

    Click here and edit as in line number (13):

    set nu
    

    click here and Edit as

提交回复
热议问题