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

前端 未结 8 1065
迷失自我
迷失自我 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:21

    Add set number to your .vimrc file in your home directory.
    If the .vimrc file is not in your home directory create one with vim .vimrc and add the commands you want at open.

    Here's a site that explains the vimrc and how to use it.

提交回复
热议问题