I can :set number
from within a file I'm editing but how can I have them always be on by default?
Vim line numbers – how to have them on by default
editingline-numbersvivim
Related Topic
- Eclipse – How to duplicate a whole line in Vim
- How to move to end of line in Vim
- Tab key == 4 spaces and auto-indent after curly braces in Vim
- Your most productive shortcut with Vim
- How to use vim registers
- How to do case insensitive search in Vim
- Git – How to make Git use the editor of the choice for commits
- How to exit the Vim editor
Best Answer
Add
set number
to your.vimrc
file in your home directory.If the
.vimrc
file is not in your home directory create one withvim .vimrc
and add the commands you want at open.Here's a site that explains the vimrc and how to use it.