I can :set number from within a file I'm editing but how can I have them always be on by default?
:set number
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.
set number
.vimrc
vim .vimrc
Here's a site that explains the vimrc and how to use it.
1.4m articles
1.4m replys
5 comments
57.0k users